U.S. Sergeant Bowe Bergdahl will return to active duty after being treated at a local hospital.

The soldier’s story is dramatic, involving the Taliban and five years of captivity. He will return to life in the U.S. army as early as Monday, according to The New York Times.

The soldier will continue counseling in San Antonio, Texas. He is scheduled to take a job at the Army North headquarters at Fort Sam Houston.

Bergdahl was held in captivity since 2009. He was released on May 31 in a “prisoner swap,” in exchange for five senior Taliban detainees. Chuck Hagel, a U.S. Defense Secretary, said the army has been investigating how the soldier disappeared.

A Twitter photo appeared of Bergdahl, while he was held in captivity by the Taliban. He appeared next to a commander from the militant Haqqani network.

"You would have noticed in the photo with Badruddin Haqqani, Bergdahl is looking physically very weak as it was the beginning when he was kidnapped by our lions," said a Taliban commander, who asked not to be named, according to Reuters.