A man who downloaded indecent images of children told police officers he had been abused as a child himself and said it was “an addiction”.
Andrew Glenn, 59, of Mains Road, told arresting officers he had “never touched any young boys”.
Glenn was found with nearly 5,000 indecent images and more than 200 indecent videos on his home computer when police arrived with a search warrant.
Fiscal depute Charmaine Gilmartin told Dundee Sheriff Court that when Glenn was shown the warrant by officers at his home, he said: “I have an interest in child pornography.
“I have for a long time now. But I don’t touch any young boys, I never have. I was touched when I was 11.”
Glenn admitted that he took or permitted to be taken or made indecent photographs or pseudo photographs of children between February 28 2009 and June 28 2017.
The fiscal added that Glenn told police he had tried to destroy his computer in an effort to break his addiction.
Mrs Gilmartin told the court: “The accused said, ‘There are laptops in there. They have no hard drives though. I broke the hard drive to try and stop what I was doing and getting on the internet — it’s an addiction’.”
Mrs Gilmartin said police arrived at Glenn’s flat on June 29 2017.
Police searched the property and computer equipment was seized. Following technical analysis, she said, 401 category A images and 139 category A videos were found.
A further 2,017 category B images and 61 videos and 1,865 category C images and eight videos were also discovered.
Solicitor Nicola Brown told the court Glenn had serious mental health difficulties and a psychiatric assessment had been ordered.
A report on her client showed he was suffering from a previously undiagnosed mental health disorder.
In addition, Glenn’s GP had identified other mental health issues and physical difficulties and she said her client was in a state of distress as a result of the court case.
Sheriff Alastair Carmichael deferred sentence until March 13 for reports and a Tay Project assessment.
He placed Glenn on the sex offenders register in the meantime. Bail was granted.