President Donald Trump might be in substantially more legal trouble if not for top administration aides and officials, according to the redacted version of special counsel Robert Mueller’s report released by the Justice Department on Thursday.

Though Mueller did not reach a conclusion as to whether Trump obstructed justice by seeking to shut down the investigation into Russian interference in the 2016 presidential election, the special counsel presented evidence of the president’s efforts to “influence” the probe and the witnesses who cooperated with it.

But at least some of those efforts appear to have been stymied by members of the president’s own staff, who chose not to heed his orders.

“The President’s efforts to influence the investigation were mostly unsuccessful, but that is largely because the persons who surrounded the President declined to carry out orders or accede to his requests,” Mueller wrote.

Mueller’s report recounted “10 episodes” involving Trump and questions of obstruction of justice. Of those instances, Mueller cited a number of Trump administration officials who resisted the president’s efforts to limit the investigation.

From the Mueller report:

Former FBI Director James Corney “did not end the investigation of Flynn, which ultimately resulted in Flynn’s prosecution and conviction for lying to the FBI.”

Former White House Counsel Donald McGahn “did not tell the Acting Attorney General

that the Special Counsel must be removed, but was instead prepared to resign over the President’s order.”

that the Special Counsel must be removed, but was instead prepared to resign over the President’s order.” McGahn “refused to recede from his recollections about events surrounding the President’s direction to have the Special Counsel removed, despite the President’s multiple demands that he do so.”

Trump campaign aide Cory Lewandowski and White House deputy chief of staff Rick Dearborn “did not deliver the President’s message to [former Attorney General Jeff] Sessions that he should confine the Russia investigation to future election meddling only.”

White House officials, including the current acting administrator of the Drug Enforcement Administration, Uttam Dhillon, worked to impede Trump’s firing of Comey, according to the report. White House counsel McGahn and Dhillon “urged the President to permit Comey to resign, but the President was adamant that he be fired.”

Trump told Deputy Attorney General Rod Rosenstein to “Put the Russia stuff in the memo,” according to notes taken by a DOJ official, but Rosenstein told him that the Russia investigation wasn’t the reason for his recommendation to fire Comey. Trump said he’d appreciate if he mentioned Russia anyway. Rosenstein told DOJ colleagues that his reasons for firing Comey were “not [the President’s] reasons.”

When the White House wanted to put out a story saying it was Rosenstein’s idea to fire Comey, Rosenstein said he wouldn’t participate in that “false story.” Trump called Rosenstein as he was watching Fox News and asked Rosenstein to hold a press conference, but the deputy attorney general said that wasn’t a good idea.

Mueller also shed more light on Trump’s efforts directing McGahn to fire the special counsel, an episode The New York Times first reported last year. According to the report, McGahn reacted with alarm after Trump told him during a meeting at the White House that “Mueller has to go.”

“He called his lawyer, drove to the White House, packed up his office, prepared to submit a resignation letter with his chief of staff, told [then-White House chief of staff Reince] Priebus that the President had asked him to ‘do crazy shit,’ and informed Priebus and [then White House adviser Steve] Bannon that he was leaving.”

Trump and his lawyers later disputed that characterization of the meeting.

Ryan J. Reilly contributed reporting.