You might remember the Biebs getting arrested way back in January for a suspected DUI, no valid driver’s license, resisting arrest, and drag racing.

During the arrest, Bieber’s alcohol breath test showed that the singer’s level was below the limit for underage drivers. However, a urine test showed evidence of marijuana and Xanax in his system. Police said that Bieber admitted to sonsuming alcohol, smoking marijuana, and taking Xanax.

Bieber finally went to court on Tuesday to address these charges. The twenty-year-old reached a plea deal with prosecutors to avoid jail time for his infractions. He plead guilty to misdemeanor charges of careless driving and resisting arrest, avoiding a DUI conviction.

As a result of the misdemeanor charges, Bieber will have to attend a 12 hour anger management course, give $50,000 to a local children’t charity, and pay legal fines.

Bieber resolved another court case in July for misdemeanor vandalism charges, in which he agreed to pay $80,000 in damages and s number of other conditions.

Bieber is also facing charges for suspected assault of a limo driver in Toronto. He’s also being sued by a photographer who says he was “roughed up” by Bieber.