A convicted paedophile freed despite warnings he may kill a child has been returned to jail for abusing a 10 year-old schoolboy.
Andrew Blair, 56, who denied the charges, lured the youngster to his Glasgow flat last August and demanded he strip before taking photos of him.
Blair had a sexual offences prevention order placed on him months earlier, banning him from approaching children.
He admitted to breaching this prior to the trial at the High Court in Glasgow.
Blair was able to offend again despite child protection officials stating in a 2009 dossier that he remained a very high risk shortly before he was released from prison.
Officials claimed there was an imminent risk of serious harm - but Blair was still released from jail in May of that year.
The report told how he had previously spoken about Thomas Hamilton who killed 16 children and their teacher in Dunblane in 1996 and child killer Steven Leisk.
Blair was convicted of using lewd and libidinous practices towards the 10 year-old as well as a charge of attempting to defeat the ends of justice.
The jury was then told of Blair's past dating back to when he was 16.
He has three previous high court convictions for sex offences against children including a six-year jail term in 1994.
He was in prison as recently as November 2009 when he received 10 months for public indecency.
Judge Lord Hardie sentenced Blair to four years in jail for breaching the order that was imposed last April.
He deferred sentence on the abuse charge until next month when Blair faces being served with an Order for Lifelong Restriction.
The trial heard how the boy was playing with friends when Blair invited him to his flat in the city's Cathcart area in August 2010.
He claimed to have found items belonging to the child including photographs.
The child, giving evidence via video link, recalled that when he went to the flat, Blair demanded that he strip naked.
The little boy added: "He said to me could you take your clothes off for me?'.
"I asked if I could only take my top off.
"I took my top off and he took a couple of photographs of me. He told me to smile during them."
He told the court that Blair then lay on top of him and pretended to have sex.
He got up and handed the child 50p and ordered him not to tell anyone.
The youngster escaped and clambered down a balcony.
The boy - now aged 11 - went home to his mother and told her what had happened.
She told the jury: "He was hysterical when he first came in.
"After about an hour, he managed to tell me."
The 29 year-old said her son had not left the house for months after his ordeal and remains withdrawn.