Bone Thugs-n-Harmony rapper Krayzie Bone landed a plea deal in his DUI case to stay out of jail. The Cleveland rapper will have to attend mandatory alcohol education class in the coming months.

According to TMZ, Krayzie pled “no contest” yesterday for driving with an alcohol level above .08. Back in July, he was arrested in Los Angeles where police found him too intoxicated to be on the road.

He was also charged with an additional DUI count and driving without a license. But since he pleaded “no contest,” those two counts were dropped.