By Jim Melwert

NORRISTOWN, Pa. (CBS) — A former gymnastics instructor has pleaded guilty in Montgomery County to molesting a child.

Thirty-three-year-old Daniel Erb pleaded guilty Monday to Involuntary Deviate Sexual Intercourse with a child under 13 and two counts of Endangering the Welfare of Child.

(credit: Montgomery County DA’s Office)

As part of the plea, he is sentenced to six to 15 years in state prison, followed by five years probation.

Prosecutor Matthew Brittenburg says the plea protects the 12-year-old victim from having to take the stand.

READ: Sunscreen Dispensers Being Installed Throughout Philadelphia

“We wanted to help do everything we could protect the victim from having to go through the experience of testifying and being cross-examined,”  Brittenburg said.

He credits the plea to the strong case built by Upper Moreland detectives Jim Kelly and Frank Gallagher, which included a confession from Erb.

Erb moved to Lower Moreland from York in 2015. He did not meet his victim through gymnastics. While there are reports of complaints of inappropriate conduct from parents, Erb was never criminally charged from contact as a gymnastics instructor.