WASHINGTON (AP) — A former private school teacher who was once featured on the FBI's list of most wanted fugitives pleaded guilty Thursday to child pornography charges and faces decades in prison.

Eric Justin Toth, 31, was captured in Nicaragua in April, ending a five-year period on the run that began after images of child pornography were found on a school camera that had been in his possession. His arrest came one year after the FBI publicized his disappearance by adding him to its Most Wanted list, where he filled a vacancy created by Osama bin Laden's death, and offered a reward for information leading to his capture.

He pleaded guilty to producing child pornography, identity theft and misusing a Social Security number. The recommended sentencing range is between 22 and 30 years in prison, according to the terms of his plea agreement. Toth's only remarks in court were "yes" and "no" answers to standard questions from a judge, and at one point he corrected the age of one of the child victims to whom prosecutors had referred.

The ex-teacher admitted in court to crimes of child pornography that prosecutors say spanned years and multiple states and involved secret videos and hidden cameras.

"The guy was on the run for five years. It's hard to say he accepted responsibility, but he did acknowledge his conduct early on, and obviously that's something we look at when we are crafting a plea agreement," U.S. Attorney Ron Machen said in an interview.

Prosecutors revealed new details about the scope of the abuse in court Thursday. They say the college-educated and computer savvy Toth took photographs and videos of a sleeping male camper while working as a counselor at a Wisconsin summer camp and, over the next two years, filmed himself undressing or sexually fondling a student of his.

He also installed hidden cameras disguised as air fresheners in a bathroom at the Beauvoir School, a private elementary school where he worked as a third-grade teacher. The recordings captured 15 children under the age of 10.

Toth was escorted off campus after school administrators found images of child pornography on a school camera that had been in his possession. He took off before police could arrest him, using aliases and stolen identities to evade capture over the next five years as he lived in places including Texas, Arizona and, finally, Nicaragua.

There were clues along the way. His car was located in a parking garage at a Minnesota airport in 2008, along with an apparent suicide note, and law enforcement learned the following year that he was working at a homeless shelter in Phoenix. A citizen's tip led authorities to Nicaragua, where was arrested last spring while living under an alias.

Prosecutors said he kept pornographic material even while on the run, though he is not being charged for those crimes. As they traced Toth's steps, authorities said, they located pornographic images on a thumb drive left in his car in Minnesota and on a laptop computer he had used in Arizona.

Placing him on the FBI's most wanted fugitives list — a roster normally populated by infamous terrorists, murderers and gangsters — was a way to draw attention to the bureau's emphasis on hunting down child predators, said Timothy Gallagher, special agent in charge of the criminal division of the FBI's Washington field office. Investigators also believe it helped crack the case; a citizen's tip led authorities to Nicaragua, where Toth was living under an alias and working as a technical writer.

"I don't want to say it was directly attributable to his apprehension, but it contributed a large part," Gallagher said in an interview. "Nationwide, worldwide media attention given to his placement on the list led to a tip placing him in Nicaragua."