A Terre Haute man is headed to prison after pleading guilty to molesting a young girl.

James Freeman was sentenced to 35 years in the Indiana Department of Corrections Wednesday as part of an agreed resolution.

Freeman was charged in June of last year of molesting a 6 year old girl while they were watching a movie together. According to court documents, Freeman told the victim’s mother that voices in his head told him to do it.