Katt Williams appears to have avoided jail time after being sentenced to 90 days community service. The comedian was arrested Dec. 8 for leading police officers on a wild chase through Sacramento, Calif., on Nov. 25 while riding a three-wheel motorcycle.

According to the Sacramento Bee, Williams was originally sentenced to serve 180 days in jail after pleading no contest to charges of reckless evasion of an officer. However, the court changed his sentence to 90 days of community service. If Williams completes the community service and there are no no charges against him, the other 90 days of his sentence will be stayed.

Williams was arrested in front of his Los Angeles home this January after failing to appear in court for the earlier arrest involving the police chase, according to TMZ.

During the chase, Williams drove the three-wheel motorcycle on the wrong side of the road. He allegedly came close to hitting five pedestrians during the bizarre joyride.

While police abandoned the chase in the interest of public safety, they put out an arrest warrant for the funnyman, the Sacramento Bee reported.

In addition to his arrests connected with the motorcycle joyride, Williams was arrested on Dec. 28 for child endangerment. A police raid found large amounts of guns and illegal drugs in his home, and the actor’s four children were placed in protective custody.

"How do you keep kids safe without guns?" Williams told TMZ when asked about the arrest. "If the police come in and raid my place and break into my gun boxes, you're gonna find guns! I'm not in a gang, what difference does it make?"

In addition to his criminal struggles, the comedian is also being sued for a botched standup performance in mid-November.

The class-action lawsuit targets both Williams and his show’s promoter, Live Nation, for a performance in Oakland on Nov. 16, according to TMZ. The lawsuit was filed by Brian Herline on Nov. 22.

According to the suit, Williams was onstage for all of 10 minutes before storming off. Reportedly, he delivered almost no comedic material, and instead "confronted a heckler, took his clothes off and attempted to fight at least three audience members."