AUGUSTA (AP) — A 27-year-old Maine man has been sentenced to eight years in prison for injuring his ex-girlfriend’s 2-year-old twin daughters in May 2014.

The Kennebec Journal reported (http://bit.ly/1MYraCW ) David Devine pleaded guilty Thursday at the Capital Judicial Center in Augusta to two counts of aggravated assault under the Alford doctrine.

The Alford plea means that Devine doesn’t agree with the state’s evidence but he acknowledges there’s enough to warrant a conviction.

Prosecutors say Devine was living with his girlfriend and her children in Oakland at the time of the attacks.

The twins’ mother returned from work on May 11, 2014, to find the girls acting strangely after spending the day with Devine. It was later determined that both girls suffered head injuries, broken bones and bruises.