A man has been jailed for more than two years after a burglary and arson attack at a doctors surgery in Gwalchmai, Anglesey.
Caernarfon Crown Court heard Sion Griffiths broke into the surgery after he was unable to get diazepam.
The 30-year-old from Holyhead cut himself breaking into the building and started a fire to hide the evidence after he bled, in the early hours of 5 May.
Three or four boxes of diazepam had been stolen. Two office chairs and paperwork were set on fire.
Medical records of some patients were destroyed in the attack which also cost the NHS £7,000 when a power loss meant drugs meant for immunisation could not be used.
Griffiths, who lived at Maes Meurig, close to the surgery, pleaded guilty to burglary and arson and was jailed for two years and four months, with an extended licence period of three years at the end of the sentence.
Griffiths had 29 previous offences, including criminal damage in 2008 at a surgery a few miles away when slates had been torn from the roof.
In 2011 he had started fires at two houses near his home and also to a tractor and had been jailed for three years.