The deputy campaign manager of Donald President Trump’s 2016 presidential campaign pulled back the curtain Tuesday on the campaign’s keen interest in the anti-secrecy organization WikiLeaks and suggested Trump himself had more knowledge of the matter than the president has previously claimed.

Testifying at the trial of Roger Stone — a Trump friend accused of lying about his own WikiLeaks-related dealings — Rick Gates said he overheard a phone call in which Stone seemed to make the president aware of a planned WikiLeaks release. Gates and other witnesses testified Stone posited himself as something of an intermediary between WikiLeaks and the campaign, with access to insider information.

Gates said his boss, Trump campaign chairman Paul Manafort, had told him Trump would be kept updated on WikiLeaks’ plans to release Democratic emails — which authorities concluded were hacked by Russia.

The testimony from the former high-ranking campaign official indicates that Trump’s knowledge of WikiLeaks was more advanced than he has previously stated. In written responses to questions from special counsel Robert S. Mueller III last year, Trump said he did not recall getting any information about WikiLeaks disclosures in advance, being told Stone “or anyone associated with my campaign” had discussions with WikiLeaks about future leaks, or ever discussing WikiLeaks with Stone.

Gates said in court that he overheard at least one phone call between Trump and Stone in late July 2016 in which he said he believed they likely discussed WikiLeaks plans, saying he reached that conclusion because after Trump hung up on the call, the then-candidate said, “more information would be coming.” Gates conceded he did not hear what Stone said on the call, which he said occurred when he and Trump were being driven from Trump Tower to LaGuardia Airport.

Asked if anyone else was giving the campaign information on WikiLeaks, Gates on Tuesday testified, “the only person I’m aware of that had information at that time was Mr. Stone.”

At trial, prosecutors are seeking to prove that Stone lied and sought to obstruct justice, but in pursuing that case, testimony during the last week has revealed a raft of information on the campaign’s attention to WikiLeaks.

After Gates’s appearance, the government rested its case. Stone’s attorneys indicated they do not plan to call witnesses, but want to introduce various pieces of evidence, including audio of his testimony before the House Intelligence Committee.

Stone, 67, has pleaded not guilty to lying to Congress about his efforts to learn more about WikiLeaks’ releases that could harm Trump’s political rival Hillary Clinton and to tampering with a witness also called by Congress by trying to get him not to contradict Stone’s testimony. In a motion for acquittal, Stone’s defense attorneys argued that because he never “successfully” contacted WikiLeaks, his testimony was not actually false or was not relevant to the Russia investigation.

Gates asserted that Manafort asked him to keep abreast of WikiLeaks’ plans and to stay in touch with Stone, who started predicting as early as April 2016 WikiLeaks’ disclosures that would harm Clinton, a timeframe before it was publicly known hackers had obtained Democratic campaign emails.

Gates said the campaign held “brainstorming sessions,” including with spokesman Jason Miller and adviser Stephen Miller, about how they would handle the leaks should they materialize.

“We believed that if information were to come out … it would give our campaign a leg up,” Gates testified.

Gates, 47, said Manafort asked him “to check with Stone to make sure the information was still real and viable.” Manafort, Gates said, claimed “he would be updating other people on the campaign, including the candidate.” And Stone would periodically reach out at critical moments, Gates said.

But Gates said as time passed and some of Stone’s predications proved untrue, he and Manafort grew skeptical. Stone, he said, was also vague — for example, indicating in the spring of 2016 that something was coming but giving “no information on dates or anything of that nature.”

Gates said campaign officials were pleased, but “in disbelief” after WikiLeaks founder Julian Assange talked in a June 2016 interview of leaks that could be damaging to Clinton,

“It was, in a way, a gift,” Gates said.

Stone’s defense team has said that Stone exaggerated his contacts and was misled by friends who also were braggarts and that any misstatements he made to Congress denying he had pursued WikiLeaks information were result of confusion about what he was being asked.

Gates testified that Stone told him they must speak urgently the day after the Assange interview and the Democratic National Committee’s announcement that it had been hacked by Russian. Stone claimed “more information would be coming,” Gates testified.

Stone also said he needed contact information for Jared Kushner, Trump’s son-in-law, Gates testified.

In a conversation in July after the DNC emails were released, Gates testified that Stone told Manafort “additional information would be coming out down the road.” Gates was with Manafort who had Stone on speakerphone.

“Manafort thought that would be great,” Gates testified.

Gates testified that he spoke to Stone again in October, after the email account of Hillary Clinton’s campaign chairman was hacked, and Stone took credit for predicting that.

Gates said the relationship between Stone and Trump was “somewhat tense” around this time period because Stone had been fired from the campaign, “but they had a 30-plus-year relationship” that was still maintained. Stone, he said, also had access to the campaign through Gates and Manafort.

For his part, Stone defense attorney Bruce Rogow sought to undermine Gates credibility by going over in detail the financial crimes to which he has pleaded guilty, including tax evasion and embezzlement.

Former Trump campaign CEO Stephen K. Bannon told the federal jury in Washington last week that Stone was seen as an “access point” to WikiLeaks, with knowledge about the release of hacked emails damaging to Hillary Clinton’s candidacy. But Bannon said he never asked Stone to contact WikiLeaks founder Julian Assange, nor was he aware of anyone else on the campaign reaching out to the anti-secrecy group.

Gates has been a cooperating witness in proceedings that grew from Mueller’s now concluded probe of Russian interference in the 2016 election. In a court filing Monday, prosecutors asked that a judge set sentencing for Gates in mid-December, a sign his cooperation may be drawing to a close after his 2018 plea, in one of the Mueller investigation’s spin offs, to conspiracy and lying to the FBI about his work about six years earlier for a political party in Ukraine.

Gates worked with the Trump campaign until Election Day and joined the inaugural committee.

The central finding of Mueller’s investigation is that Moscow had a primary role in sweeping and systemic cyberinterference in the 2016 campaign, including stealing and releasing emails from the Democratic National Committee and Clinton’s presidential campaign chairman.

On a timeline shown the first day of trial, former FBI agent Michelle Taylor highlighted a series of calls on the phones of Gates, Trump and Stone in late July 2016. The calls — whose content is not known to investigators, Taylor said — came during the same week Stone emailed campaign chairman Paul Manafort that he had an idea to “save Trump’s a--” and as Stone allegedly was emailing an acquaintance for help in making an approach in London to Assange to ask about any upcoming WikiLeaks dumps.

The witness Stone is accused of trying to intimidate — radio host and comedian Randy Credico — testified for two days last week about his conversations with Stone regarding WikiLeaks and the pressure his old friend put on him to stonewall the House Intelligence Committee’s Russia probe. Stone, Credico testified, made him his “patsy” by threatening his reputation and that of a close friend.

“I can’t work on his level,” Credico testified. “He plays hardball; he throws a lot of junk, and I didn’t want to get hit.”

Ultimately Credico refused to testify before Congress, invoking his Fifth Amendment protections against self-incrimination.

Stone’s lies and Credico’s silence, Taylor testified in the trial before U.S. District Judge Amy Berman Jackson, kept the House committee from being able to contradict Stone’s claim that he had no records of communications with WikiLeaks.