A court has heard how a man who drove a dealer round to collect drugs was given an egg roll as payment.
Edward Walls, 42, admitted being concerned in the supply of heroin in Dumfries and on the A75 near Gretna earlier this year.
His only reward for driving dealer Brian Webber around was an egg roll and half an ounce of tobacco.
Walls, who was out on licence for previous drugs offences, was jailed for five years and seven months.
The High Court in Glasgow heard how Webber asked him to drive him about while he collected heroin.
They were spotted by police on three separate occasions and on the last occasion, on 17 February, the car driven by Walls sped away.
When police caught up with them and searched the vehicle they found nothing.
However, officers searched the route taken by the car and found heroin with a potential street value of £5,500 which had been thrown out the window during the pursuit.
Prosecutor Hugh Irwin said: "This plea is accepted on the basis that Walls was concerned in the supply of drugs by driving Webber around in his car in the knowledge that Webber was involved in the supply of controlled drugs."
The court was told that Webber was currently serving four years for his part in the enterprise after being convicted at sheriff and jury level.
Walls, who has two previous convictions for drugs offences, was dealt with at the High Court under the three strikes rule.
Advocate Susan Duff, defending Walls, said: "When Mr Walls got out of prison the only people he knew were through drugs.
"He met up with Brian Webber who was a disqualified for life driver and he asked Mr Walls to drive him around.
"He received nothing by way of payment - the only generosity that was shown to him by Mr Webber was to buy him an egg roll and half an ounce of tobacco."
Judge Lady Stacey told Walls he had pleaded guilty to a "serious charge".
She ordered him to serve the unexpired eight-month portion of his previous sentence before starting his latest term.