A former Twin Cedars High School teacher was sentenced Thursday for one count of sexual exploitation by a school employee.

Alan Wesley Stewart, 61, of Oskaloosa will spend up to two years in prison. Stewart was arrested in March and originally charged with a class D felony following an investigation by the Marion County Sheriff’s Office in February. The investigation revealed Stewart, while acting as a long-term teacher, had repeated sexual contact with a student during 2015. According to court records, Stewart had a relationship with a student enrolled in the Twin Cedars Community School District that consisted of gift exchanges, private conversations in his office, private messages, and time spent at Stewart’s home. The victim told police that the nature of the relationship was intimate and, at times, sexual. Investigators claim the statements were corroborated by Stewart. Stewart is also being ordered to pay restitution for counseling of the victim and was given a no contact order.

Stewart will also need to complete a mental health evaluation, a sexual offender treatment program, and submit a DNA sample. Following his prison sentence he will be on parole for ten years. During his parole Stewart will be subject to electronic tracking and must register as a sex offender.