A man has admitted attacking police officers at an Aberdeenshire railway station and threatening to infect them with HIV.
Graeme Dunlop was spotted by members of the British Transport Police, with his hands covered in blood, as he travelled on a train to Stonehaven.
Concerned about his wellbeing, they informed officers at Police Scotland who were sent to try to find him as he exited the train.
When he arrived, the 20-year-old was found to be drunk and became aggressive with officers who were trying to help him.
And when they attempted to usher him away from the tracks he lashed out, kicking Constable Fay MacLeod twice to the body.
He then started to shout and swear and claimed he had HIV before telling officers he was going to infect them.
Dunlop appeared at Aberdeen Sheriff Court yesterday to be sentenced having previously admitted carrying out three charges against the officers.
As well as acting in a threatening and abusive manner and assaulting Constable MacLeod, he also admitted assaulting Constable Andrew Kennedy by spitting at him and attempting to bite him.
Fiscal depute Lynzi Souter said that Dunlop became very difficult to deal with on August 7 and had to be restrained to the ground following his outburst against Constable MacLeod.
She said when they eventually managed to get him into a police car he spat at Constable Kennedy, prompting them to cover his face with a spit mask. She said he also attempted to bite the officer when he was attempting to stop Dunlop from hitting his head.
Sheriff William Taylor ordered Dunlop, of Flat A, 81 Christies Lane, Montrose, to carry out 80 hours of unpaid work within the next six months.