After a long and public battle, Usher has been awarded primary custody of his two sons.

A judge sided with the “Climax” singer over his ex-wife Tameka Foster in court today, reports TMZ.

Both parties wanted full custody of their children. Tameka called out Usher for being an absentee father who was too wrapped up in his career to be a good parent. She also accused him of using drugs in front of his sons.

Usher fired back, claiming that Tameka was inattentive and irresponsible. He even broke down on the witness stand at one point during the trial.

Usher Raymond V and Naviyd Ely Raymond will be spending the majority of their time with their father. Tameka still retains some custodial rights, but it’s unclear how often she will be able to see her kids.