A Hancock County man who had sexually explicit photos and videos of children on his laptop computer when he sent it to an Ellsworth repair shop in 2013 was sentenced Monday to 10 years in prison for possession of child pornography.

John Tapley, 58, of Sedgwick had pleaded guilty to the felony charge in U.S. District Court in Bangor before Judge John A. Woodcock Jr. on Dec. 29, 2014.

Tapley brought his Acer laptop to the computer repair shop on Jan. 21, 2013, according to a prosecution document filed with the court last year.

“While the technician was working on the defendant’s laptop computer, he found sexually suggestive images of prepubescent girls and reported it to the police,” Assistant U.S. Attorney Andrew McCormack said in the court document.

Police executed a search warrant for the laptop, allowing computer experts at the Maine State Police Computer Crimes Unit to seize it for further examination. They found multiple pornographic images and videos of children and evidence that Tapley had sent some of those images to another man using online chat forums, the document says.

“In a Gigatribe chat from April of 2012, the defendant noted that he likes girls between the ages of 5-12 and ‘some babys too,'” McCormack wrote.

Tapley has two prior convictions for unlawful sexual conduct. As a registered sex offender, he faced an enhanced prison sentence, according to the U.S. Attorney’s Office.

The judge also sentenced Tapley to serve 10 years of supervised release following completion of his federal prison term.