A man who sexually assaulted a girl under the age of 14 was sentenced to probation Friday.

In a deal, Albert Mejia pleaded guilty to two counts of sex assault in the second degree, two counts of sex assault in the third degree, and one count of attempted sex assault in the third degree.

The girl informed her counselor of the assaults in August 2014. She said he was a family member’s boyfriend, and it happened over the course of several years, according to police.

Mejia was sentenced to five years probation.

He must also pay several fees, and register as a sex offender.