Pop star Justin Bieber has accepted a plea deal stemming from his Miami Beach arrest that will keep him from serving any prison time.

The 20-year-old singer pleaded guilty to misdemeanor careless driving and resisting arrest without violence charges, rather than the original driving under the influence charge.

Bieber also agreed to take an anger management course, pay a $500 fine, compete a victim impact program and make a $50,000 charitable donation, in addition to paying court-ordered fines.

"I hope that he realizes that his actions not only lead to consequences that effect him, but they lead to consequences that lead to others who are looking up to him as a role model," Judge Bill Altfield said.

Bieber was arrested in January after what police described as an illegal street race.

"The strengths and weaknesses of the case motivated everyone to seek this appropriate resolution," Miami-Dade County state attorney Katherine Fernandez Rundle said in a statement. "The ultimate purpose of the Miami Beach Police Department's initial traffic stop was to end some rash juvenile type conduct before a tragedy occurred.  The intervention and counseling parts of the plea should provide a pathway toward adult responsibility."

Bieber did not attend the hearing.

PHOTOS: Justin Bieber Jail Pictures

Published On: Mar 04 2014 03:41:47 PM EST

Miami Beach Police released pictures they took of Justin Bieber while he was in their custody.

1 / 19

Follow Local 10 on Twitter @WPLGLocal10