Chris Brown and Mark Geragos

Chris Brown is going back to rehab. The R&B singer has been ordered to serve 90 days in a treatment facility for anger management.

Brown appeared in an L.A. courtroom on Wednesday for a progress report in the Rihanna assault case.

The judge ordered Brown to serve three months in a residential treatment facility and perform at least 24 hours of community labor per week, according to the AP. As part of the terms, he must also submit to drug testing and take any prescriptions recommended by the rehab center.

Brown previously spent two weeks in a Malibu rehab facility for anger management, but was kicked out after he reportedly threw a rock through his mother’s car window.

According to TMZ, Brown’s mom was urging her son to stay in the facility for extended treatment. Chris disagreed and violently responded by throwing a rock through her car window, shattering it.

The 24-year-old may still face a probation violation due to his arrest last month on a misdemeanor assault charge in Washington, D.C.

Brown is due back in court on Dec. 16 for another hearing.