A man got involved in class A drug trafficking after his food business went bust.
Martin Hanlon was pulled over by police in his Vauxhall Insignia car on the A702 near Biggar, Lanarkshire last September 27.
Officers went on to discover multiple blocks of cocaine inside cardboard boxes in the boot of the motor.
The haul - which had a purity of up to 77% - had a potential value of £600,000.
The 37-year-old pleaded guilty to being concerned in the supply of cocaine as he appeared in the dock at the High Court in Glasgow.
His lawyer told how Hanlon, of Johnstone, had previously been a construction site manager.
READ MORE: In the dock: The latest Renfrewshire court cases we have covered
Brian McConnachie KC, defending, then explained: "He got involved in a catering business - travelling around food festivals.
"This was a company which employed a chef and he (Hanlon) done some of the catering himself."
But, the court heard the business hit problems and "collapsed owing money".
Hanlon had borrowed £12,000 from others to help set-up the company.
Mr McConnachie: "After the business collapsed, he was in a position where there was no obvious means to repay.
"In order to contribute to the debt, he was effectively hired to carry out a driving job which was to deliver an 'item' down south.
READ MORE: Paedophile pensioner guilty of sexually abusing boys in Renfrewshire children's home
"Unknown to him, the person he was delivering that item to was under surveillance."
The other individual was arrested, but Hanlon returned to Scotland.
Mr McConnachie: "These people had not had their money repaid and had now also lost a significant amount of cocaine.
"They advised Mr Hanlon that he was required to carry out another such job. This time he was caught."
In connection with the first drug delivery, Hanlon was arrested for that in December 2024.
He later pleaded guilty at Carlisle Crown Court and was jailed in June this year.
Lord Harrower deferred sentencing on this latest case until next month.
Share