Thiago Silva is out on $25,000 bail, according to a report from CBS Miami.

A judge granted the former UFC fighter bail, telling him he needs to stay away from drugs, alcohol, wear an ankle monitoring bracelet, attend anger management classes and be at his home by 10 p.m.

Silva was involved in a police standoff last month after threatening his estranged wife and Pablo Popovitch at Popvitch’s Brazilian jiu-jitsu center. Silva proceeded to barricade himself in his home before surrendering without incident to the police.

The initial judge, John Hurley, denied Silva bail after his first hearing. Geoffrey Cohen, another Broward County judge, granted Silva his release. Cohen disagreed with prosecutors, saying he didn’t feel Silva was a flight risk to return to Brazil.

Silva’s manager, Glenn Robinson, told the site “The judge made the right decision.” Robinson also said he is working to get his client a new fight outside of the UFC.