Michael Cohen testified for hours Wednesday in the U.S. House about his decade-long relationship with Donald Trump, telling lawmakers about his role as a personal lawyer to the New York businessman and how major companies sought his help to decipher the “enigma” of the Republican president and Washington outsider.

Cohen, testifying before the House Oversight Committee, was asked about various contracts he inked with companies that wanted his help in advocating on their behalf in the Trump administration. Prosecutors said Cohen earned more than $4 million from those contracts in the early months of the new administration.