Criminal Minds star Shemar Moore was sentenced to probation and community service after pleading no contest in an alcohol-related speeding case.

Moore was originally arrested on June 1 after being stopped by the California Highway Patrol for speeding, officials said. A few weeks later, on June 22, Moore was charged with driving under the influence and driving with a blood-alcohol level of .08 percent or above, city attorney spokesman Frank Mateljan said.

As part of a plea deal, Moore pleaded no contest to a misdemeanor count of exhibition of speed, and the DUI charges were dropped, Mateljan said.

The actor was given 36 months probation and agreed to serve DUI-related conditions, including not driving with alcohol in his system, officials said. Moore has also agreed to 80 hours of community service and was given the choice of wearing an alcohol-monitoring ankle bracelet, Mateljan said.

“Shemar has not yet made a choice with regard to his community service,” his publicist Staci Wolfe said Monday.

“I’m a serious and conscientious person by nature, but my one vice is driving fast, and it unfortunately took something like this for me to take stock and slow down,” the actor said in a statement last month.