Donald Trump was in close contact with Michael Cohen as his longtime lawyer arranged hush money payments to two women during the 2016 presidential campaign, according to court documents revealed Thursday that showed the criminal investigation was wider than previously known.

Although Trump later denied knowing about the payments, he and Cohen spoke frequently at key moments as Cohen raced to keep Trump’s alleged extramarital affairs under wraps weeks before the election.