President Trump accused his former personal attorney Michael Cohen of providing “totally false” testimony when Cohen pleaded guilty to campaign finance violations made at the direction of Trump.

Although prosecutors indicated Cohen was being truthful in his guilty plea, Trump slammed Cohen and characterized him as a “PR person who did small legal work.” He also claimed it was unfortunate Cohen pursued a plea deal to “achieve a lighter sentence,” the Associated Press reported.

Cohen pleaded guilty to eight counts in August, including one count of willful cause of unlawful corporate contribution and one count of excessive campaign contribution related to a payment made on Oct. 27, 2016.

[More: Former Trump lawyer Michael Cohen registers as a Democrat]

The campaign finance violations stemmed from payments Cohen made to two women who claimed to have had affairs with Trump, both of which Trump has denied. They were paid per the direction of the “candidate” in exchange for their silence, Cohen told a judge in United States District Court in Manhattan in August.

Cohen’s attorney Lanny Davis defended his client against Trump’s criticisms, and said Trump’s comments should be taken as a “compliment.”

“Under oath @MichaelCohen212 acknowledged and took responsibility for @realDonaldTrump @POTUS bad behavior,” Davis tweeted Tuesday evening. “Trump calling anyone a #liar is a compliment!”

"@MichaelCohen212 who testified under oath doesn’t fear the #truth. @realdonaldtrump @potus will NEVER testify under oath because he can not afford to tell the #truth. #TeamMichael," Davis said in a separate tweet.

Cohen’s sentencing date is scheduled for Dec. 12.