More than two years after filing for divorce, Brad Pitt and Angelina Jolie have come to an agreement on custody of their six children. New details are emerging about their agreement, and a source tells Us Weekly that Pitt, 54, ended up getting exactly what he wanted.

Pitt and Jolie, 43, who split in 2016, are parents of Maddox, 17, Pax, 15, Zahara, 13, Shiloh, 12, and twins Knox and Vivienne, 10. 

Jolie was the first to file for divorce in September of 2016, and requested sole custody; Pitt responded in November, requesting joint legal and physical custody. Since then, the pair has been at war, often publicly. Pitt was famously accused of abusing his son Maddox in an incident on a private plane, a charge he was cleared of, but remained hovering in the background throughout the process.

Details of the settlement remain confidential, but “Angelina agreed to a deal that gives Brad joint physical and legal custody of the children,” per the source.

While the custody agreement has been tentatively settled, it won’t be finalized until they come to a financial agreement. Between the two, they have more than $500 million in assets, according to reports.