Babyshambles frontman Pete Doherty has been given a suspended sentence at West London Magistrates' Court over a string of drug and motoring offences.
The 28-year-old had previously accepted that he was driving without insurance and with no MOT while in possession of crack cocaine, heroin, ketamine and cannabis.
AdvertisementOn Oct 27, the rocker was sentenced to four months in jail - suspended for two years - during the hearing at the court.
District judge Davinder Lachar also handed the singer an 18-month supervision order and a 12-month drug rehabilitation order, The BBC reports.
The rocker was also ordered to pay a 400 pounds fine for driving without insurance and 75 pounds for having no MOT certificate.
Cops found a number of substances on him and in the car and the singer later pleaded guilty to various driving and drug charges.
Lachar was also told that Doherty had tested negative for drugs throughout a six-week residential drug treatment and wanted to "give himself a chance" to recover.
While passing the judgment, Judge Lachhar said: "You have made strides and I hope you will continue in doing so. I would hate to see you going backwards."
Doherty was released from a drug treatment order imposed in February 2006 earlier this week, after district judge Jane McIvor revoked the remaining six months left to serve on the order at a hearing at Thames magistrates court.
McIvor said that the decision had been taken after advice from experts, with Doherty having already undergone some 18 months of supervision.
She also added that she expects the plan to keep the musician drug-free would be adhered to.