A Los Angeles judge has ordered Michael Avenatti, the lawyer who sued President Donald Trump on behalf of porn star Stormy Daniels, to pay $4.85 million to a former contract attorney at his firm, according to the lawyer who brought the case.

The contract attorney, Jason Frank, resigned from Avenatti’s former firm in 2016 after claiming he was owed millions of dollars in unpaid compensation, according to court records. The judge’s order came from the bench at a hearing on Monday, noted Frank’s lawyer, Eric George of Los Angeles-based Browne George Ross.