Hanning’s IP address was flagged up as having accessed indecent images of children. Police obtained a search warrant and attended at his home in Blenheim Avenue on June 2, 2010.

Hanning, who was alone in the property at the time, was cautioned and a search was carried out. A computer in his bedroom was seized which, after forensic examination, was found to contain 105 indecent images of children.

Historical search terms indicative of common child abuse searches were also found. They included ‘pigtail heaven’, ‘child models’ ‘school models’ and pre-teen models’.

A total of 981 indecent images were discovered on another electronic device in Hanning’s bedroom. The majority of the images were at the lowest level of indecency, however there were images at the highest level.

Hanning’s defence lawyer Rhonda Anderson told the court her client acknowleged that this is a serious matter.

She said: “The images were not accessible to others and were solely for personal use.

“This is something the accused has taken extremely seriously. He is thoroughly ashamed of his behaviour.”

Hanning pled guilty to an amended charge of possession of indecent photos of children.

Sheriff Joyce Powrie deferred sentence until July 22 for reports including a risk assessment. Hanning was placed on the sex offenders’ register meantime.