The flamboyant alleged head of the Philadelphia Mafia was released from jail Friday after a federal judge granted him $5 million bail as he awaits trial on racketeering charges.

Joseph “Skinny Joey” Merlino, 54, was granted bail after federal prosecutors reversed their opposition and agreed to his release after saying last week that he was a “danger to the community.” They didn’t explain what led to their turnabout.

Merlino will be required to live at his Boca Raton home and wear an ankle bracelet. U.S. Magistrate Judge William Matthewman said Merlino can work from 7 a.m. to 7 p.m. at the local restaurant that bears his name, Merlino’s, which he says will reopen in October, and travel to New York City, New Jersey and eastern Pennsylvania, including to attend a family day at his two daughters’ university. Read more by going here: http://abcnews.go.com/US/wireStory/skinny-joey-merlino-due-florida-court-mafia-charges-41323423