Police officers hauled a man out of Inverness Sheriff Court for sleeping just minutes before he was due to appear.
Steven Doyle was ordered from the court by Sheriff David Sutherland despite him pleading: "Judge, I’m not sleeping."
A court police officer took the 44-year-old man by the arm and dragged him from his seat and out into the corridor.
However, Doyle had to appear a short time later on drugs charges and his solicitor Ken Ferguson told Sheriff Sutherland: "He’s the man you sent out court earlier my lord.
"I have spoken to him and he will be on his best behaviour."
Doyle (44), of Balloan Road, Inverness, pleaded guilty to being in possession of a class A drug on December 16, 2016, in the city’s Bank Street just 13 days before his birthday.
Depute Fiscal Ross Carvel told the court: "At around 2pm on the day the accused was seen apparently buying drugs in a street within the city and officers sought to speak with him.
"But he fled and was quickly caught despite being on a bike.
"He was found to have Diamorphine, the quantity was 0.46grammes which had a value of approximately £60."
Doyle’s defence solicitor Ferguson said: "The incident in December of last year was very much a one off and he has no on going issues with Diamorphine."
Sheriff Sutherland issued him with a £400 fine and added: "It would have been £500 but for your early plea."