Two illegal immigrants who were forced to work as "gardeners" in a cannabis factory have been jailed for 32 months.
Chong Cheng, 33, and Xian Hu, 38, both admitted producing the drug in southern Scotland earlier this year.
Dumfries Sheriff Court was told they had been smuggled into the UK and put to work in "horrendous" conditions on the industrial estate in Ecclefechan.
The court heard one man felt "relief bordering on joy" when police raided the unit, described as a "death trap".
Sheriff George Jamieson gave jail terms to both men and also recommended them for deportation.
They had previously admitted producing cannabis between March and May this year at the Broadmeadow Industrial Estate.
The court heard how the pair were found in the roof space of a converted unit.
Also inside the building was a crop of 1,354 plants which could have produced drugs with an estimated street value of about £750,000.
Depute procurator fiscal Pamela Rhodes told the court the factory had been uncovered after investigations into power problems at nearby buildings.
The windows and doors had been boarded up from the inside, power meters had been bypassed and the plants were put under powerful lights.
She said: "It was a professional set-up which would have cost up to £50,000 to put into operation."
When interviewed by police, both men admitted they had paid several thousand pounds to be smuggled into the UK from China by organised gangs.
However, when they arrived they had been forced to undertake work to pay off the debt.
Solicitors for both men said they had been used by "unscrupulous" contacts to look after the cannabis plants.
Conditions in the unit were described as "horrendous" and the men had to remain inside the factory with no daylight coming in and the temperature kept constantly high.
Supplies were delivered, but the two men were undernourished when they were found.
One solicitor said his client felt "relief bordering on joy" when police raided the factory.
He added that officers described the building as a "death trap" due to the electricity supply having been tampered with.
Dear Drugs-Forum readers: We are a small non-profit that runs one of the most read drug information & addiction help websites in the world. We serve over 4 million readers per month, and have costs like all popular websites: servers, hosting, licenses and software. To protect our independence we do not run ads. We take no government funds. We run on donations which average $25. If everyone reading this would donate $5 then this fund raiser would be done in an hour. If Drugs-Forum is useful to you, take one minute to keep it online another year by donating whatever you can today. Donations are currently not sufficient to pay our bills and keep the site up. Your help is most welcome. Thank you.