A man was sentenced Friday to serve five years with the Department of Corrections for sexually assaulting a 12-year-old.

Nicholas James Orr, 27, was sentenced to 15 years with 10 suspended, and was designated a persistent felony offender, with a level two risk designation for the sexual offense. Yellowstone County District Court Judge Ingrid Gustafson followed a joint recommendation for the sentence laid out in a plea agreement.

Orr is required to go to self-help meetings and follow recommendations for other treatment from his mental health provider. He pleaded guilty to felony sexual assault in June. A charge of sexual intercourse without consent was dismissed.

According to charges, a 12-year-old girl was reported as a runaway on May 10, 2013. Her mother suspected she was with Orr because she had previously attempted an intimate relationship with him. The mother had forbidden interaction between the two because of their age difference.

On May 19, the girl was found at Orr’s home on the 800 block of North 17th Street hiding in a bedroom closet. She told officers she had been sleeping at the house and had a sexual relationship with Orr. Lab tests from a forensic exam confirmed sexual contact.

In court Friday, Orr made a brief statement.

“I just want to say I’m sorry,” he said. “I know what I did was wrong.”