Scott Lathan, 23, of Bowdoinham pleaded guilty on Tuesday to one Class C charge of unlawful sexual contact that occurred between July 13 and Aug. 4, 2016.

At first, Lathan was charged with two charges of Class B unlawful sexual contact, each one of those carrying a maximum 10-year prison term. On Tuesday, Lathan pleaded guilty to one Class C charge of unlawful sexual contact that occurred between July 13 and Aug. 4, 2016.

He was also ordered to stay away from the victim and prohibited from having any contact with children under 16. Lathan now has to register as a sex offender for at least 25 years under the state’s Sex Offender Registration and Notification Act.