MIAMI -

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 and make a $50,000 charitable donation, in addition to paying court-ordered fines.

He 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