A judge in Mocksville on Friday ordered a former Davie County middle school teacher to stay away from the students who accused him of sex crimes.

The judge also ordered Doug Ebersbach, 50, to remain in jail under a $750,000 bond.

Ebersbach, who was arrested in Ohio on Saturday, was brought back to Davie County on Thursday to face several charges in connection with a sexual relationship he allegedly had with a student at Ellis Middle School.

Ebersbach faces four counts of sexual exploitation of a minor, one count of indecent liberties with a minor and one count of breaking and entering in connection with a relationship involving a female student, the Davie County Sheriff's Office said.

According to Sheriff Andy Stokes, Ebersbach could have taken indecent liberties with as many as 20 to 30 girls. Stokes wouldn't say exactly what the teacher was doing with students, but did say it was "sickening."

Ebersbach taught at South Davie Middle School for three years until he was transferred to William Ellis Middle School for the 2009-2010 school year due to "budget and staff reductions." He had worked with Davie County Schools since 2006.

Ebersbach was absent from his teaching position at William Ellis Middle School September 15-25. After Ebersbach found out about the charges, he resigned his position effective September 27 and moved to Ohio.

Authorities said he fled to Ohio to avoid investigators.