A Texas teacher who pleaded guilty on Friday to having sexual relationships with students won’t have to register as a sex offender.

Haeli Wey had been having sex for months with two Westlake High School students in Austin until she was arrested in October 2015, according to CBS News. At the time of the trysts, the male students were 17-years-old—the legal age of consent in Texas.

Under Texas law, teachers are not allowed to have sexual relationships with students.

One victim told police that he started having sex with the then 28-year-old math teacher when she joined his family on a trip to Africa.

“The victim said while in Africa his relationship with Ms. Wey become more personal and on a deeper level,” an investigator wrote in court documents. “The victim stated while in Africa their relationship became physical.”

The student claimed that he slept with Wey more than 10 times, but their relationship came to a halt when he heard rumors that she went on a hike with the other victim.

According to the second victim, he had sex with Wey on the hike in September 2015 after they began talking on social media, where she invited him on the outing. He claimed that she then asked him to delete the conversation.

Their relationship came to the attention of school administrators when another student told them that she saw text messages between Wey and one of the boys. The school then contacted the student’s parents, who agreed for their son to meet with police.

Wey pleaded guilty to two felony counts of having an improper relationship with a student. The former teacher will be sentenced March 10.