Alex Murdaugh pleaded guilty Friday to stealing millions of dollars from vulnerable legal clients in schemes lasting over a decade under an agreement that all but ensures more prison time for the longtime lawyer who was convicted of killing his wife and younger son.

Murdaugh agreed to plead guilty to 22 total counts, including money laundering, breach of trust and financial fraud, in exchange for a 27-year sentence. Judge Clifton Newman said he intends to officially accept the plea deal during a sentencing hearing set for Nov. 28 so that victims or their families may attend.