SACRAMENTO (CBS13) — A Grass Valley man was sentenced to 10 years and four months in prison Friday for the receipt of child pornography and attempting to use the internet to entice a child to engage in sexual activity.

The Department of Justice said 34-year-old Samuel C. Thompson used a peer-to-peer file-sharing software program to download child pron files from the internet between August 2012 and March 2013.

READ MORE: Video Released Of Fatal Officer-Involved Shooting Of Tahoe Park Resident Who Shot At Authorities

Thompson pleaded guilty in May 2016 to charges of receipt of child pornography.

READ ALSO: Car Doors Must Be Locked To Count As A Burglary But New Bill Closes Loophole

READ MORE: Exclusive: Marysville Family Sends Message To Accused Wrong-Way Driver In Double Fatal Crash

Court documents revealed in 2016, while Thompson was on supervised pretrial release in the 2013 case, he posted an online advertisement to meet and teach a “younger lover”

When an undercover Placer County Sheriff’s detective replied to the ad, Thompson arranged to meet what he believed would be a 13-year-old girl for a sexual encounter.

MORE NEWS: Roseville Taqueria Nixtaco Gains National Attention

He was arrested at a park in Auburn, where he planned to carry out that encounter. Thompson was charged with attempted online enticement of a minor.