FARMINGTON, Maine (AP) — A Maine man who was accused of having sex with a 12-year-old has been sentenced to prison.

Joshua Gates Weisberg-Pool/Getty Images

The Waterville Morning Sentinel reports Lance Woodbury was ordered Thursday to serve 12 years. The 40-year-old Wilton man was charged with gross sexual assault for having sex with the child last year.

Woodbury had accepted a plea deal putting his sentence between eight and 12 years, but the judge opted for the harshest penalty. The prosecutor said Woodbury showed no remorse, claiming the child was the aggressor in the encounter.

Woodbury's attorney had asked for a lighter sentence, saying he had no previous sex offense convictions.