Mark Grace pleaded guilty to endangerment and DUI in court Thursday, avoiding what could have been a lengthy prison sentence.

Instead, a judge imposed a sentence that includes work-release jail time as well as three years of supervised probation. Additionally, an interlock device must be installed in Grace's vehicle for six months and he will need permission to travel out of state.

His work-release sentence is scheduled to begin Feb. 10.

Grace, a former Diamondbacks player and broadcaster, was charged with four counts of aggravated DUI that could have resulted in a three-year prison sentence.

Grace's attorney, Larry Kazan, has not responded to requests for comment.

Grace pleaded not guilty in October to four aggravated DUI charges. His August DUI arrest was his second in Scottsdale in 15 months.

Grace faced from one to 3.75 years in prison on each count, Jerry Cobb, spokesman for the Maricopa County Attorney's Office, said recently.

In the most recent arrest, Grace, a Scottsdale resident, was taken into custody about 9 p.m. on Aug. 23 after he was pulled over while driving near 7200 E. McCormick Parkway in Scottsdale.

Blood tests showed he had a blood-alcohol content of .095, which is above the legal limit of .08, Scottsdale police said.

Following his arrest on May 30, 2011, Grace's license was suspended and he was required to have an interlock device in his vehicle, police said. Charges against him included operating a vehicle with a suspended license and driving without a court-ordered interlock device.

Diamondbacks CEO Derrick Hall announced in October that Grace would not return to the broadcast booth.

In an interview with the Republic earlier this month, Grace said, "I have nobody to blame but myself."

"I did this," he said at the time. "The Diamondbacks didn't do anything. I think it's important to own this. I own this."