WALKER, Minn. (AP) — A northern Minnesota man convicted of killing an acquaintance and burying the man’s body has been sentenced to 40 years in prison.

Cass County Attorney Christopher Strandlie says 29-year-old Dane Riley of Pine River got the maximum sentence under state law Thursday.

READ MORE: Kim Potter Trial, Dec. 2 Live Updates: 5 Jury Spots Yet To Be Filled

In 2012, a jury convicted Riley of second-degree intentional murder, a firearms violation and interfering with a dead body.

READ MORE: 2 Of 4 Charged In Greenvale Township Death Plead Guilty

Mark Huesman’s remains were found in a shallow grave in rural Pine River on July 24, 2012, after he was reported missing. The complaint says Riley picked up Huesman on July 14 and they went to Riley’s residence.

A woman staying at Riley’s trailer house told investigators she woke to the sound of gunshots, went outside and saw Riley hitting Huesman and could hear Huesman begging Riley to stop.

MORE NEWS: St. Paul School Board Votes To Close 6 Schools Amid Declining Enrollment, Sustainability Concerns 

(© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)