(CNN) Michael Cohen, President Donald Trump's former personal attorney, pleaded guilty in Manhattan federal court on Tuesday to eight criminal counts including tax fraud, false statements to a bank and campaign finance violations tied to his work for Trump.

Cohen said in a plea deal that "in coordination and at the direction of a candidate for federal office" he kept information that would have been harmful to the candidate and the campaign from becoming public.

Read Cohen's entire plea agreement: