A burglar interrupted a sentencing hearing and asked to be allowed to remain in prison after hearing that the judge planned to release him on bail.
Mark Egan (41) told the judge that he is doing a drugs course at Mountjoy Prison which has two months remaining and asked that he be allowed to finish it.
Judge Melanie Greally, who had indicated that she was planning to re-admit Egan to bail, commended him for his "responsible" attitude and agreed to finalise sentencing.
Egan, of Cabra Road, Dublin 7, pleaded guilty at Dublin Circuit Criminal Court to two burglaries and one attempted burglary at Bishop Street, Dublin 8, on May 28, 2019. He has a total of 41 previous convictions.
Garda Greg Moroney told Kieran Kelly BL, prosecuting, that Egan entered a building on Bishop Street which contained a number of different organisations.
Three separate companies were affected by the burglaries.
Gda Moroney said Egan stole laptops with a value of €4,700 from one company and a sum of money from a second company.
The offices of a third company were ransacked but nothing was taken.
During an interview with gardaí, Egan took responsibility for the offences once he saw himself on CCTV footage from the scene.
Egan was on medication at the time which he said prevented him recalling the burglaries.
Luigi Rea BL, defending, said his client has four children and his relationship with them "perished" due to his addiction.
However, he said Egan had recently redeveloped a relationship with his children.
Judge Greally noted that he was released from custody on a 12-month probation bond and relapsed very shortly after his release, but then embarked on a very successful period of supervision from the Probation Service.
She said she was satisfied that Egan is someone who has had a lot of disadvantages and has made efforts to address his addiction, which is his principal risk factor.
Judge Greally sentenced him to three years' imprisonment, but suspended the final two years on strict conditions and backdated it to January 17 last, the date Egan first went into custody.