MANILA, Philippines — President Donald Trump’s lengthy Asia trip wound down as it began, with a visit meant to be centered on trade and North Korea shadowed by questions about Russia.

Trump was in the Philippines, the final stop of his trip, on Monday, poised to hold formal talks with President Rodrigo Duterte, who has overseen a bloody drug war that has featured extrajudicial killings and fears of vigilante justice. But Trump remains dogged by things he has said, and has not said, about Russia.

Days before he left for the five-nation Asia trip, Trump’s campaign chairman was indicted on charges he laundered millions of dollars through overseas shell companies and a campaign adviser pleaded guilty to lying to the FBI. And while White House aides have been pleased with the president’s messaging through stops in Japan, South Korea and China, Trump has brought Russia to the forefront again as he makes his final stops.

He tried to have it both ways Sunday on the issue of Russian interference in last year’s presidential race, saying he believes both the U.S. intelligence agencies when they say Russia meddled and Russian President Vladimir Putin’s sincerity in claiming that his country did not.

“I believe that he feels that he and Russia did not meddle in the election,” Trump said of Putin at a news conference in Hanoi with Vietnam’s president.

“As to whether I believe it, I’m with our agencies,” Trump said. “As currently led by fine people, I believe very much in our intelligence agencies.”

U.S. intelligence agencies have concluded that Russia meddled in the 2016 election to help the Republican Trump defeat Democrat Hillary Clinton. A special counsel’s examination of potential collusion between Moscow and Trump campaign aides so far has led to indictments against Trump’s former campaign chairman and another top aide for crimes unrelated to the campaign, and a guilty plea from a Trump foreign policy adviser.

Multiple congressional committees are also investigating.

On Saturday, Trump lashed out at former heads of the U.S. intelligence agencies, claiming there are plenty of reasons to be suspicious of their findings and dismissing them as “political hacks.”

John Brennan, the former CIA director, responded Sunday on CNN’s “State of the Union” that Trump was dismissing the former officials — himself included — as “political hacks” in an attempt to “delegitimize” the intelligence community’s assessment that Russia interfered in the election.

“I think Mr. Putin is very clever in terms of playing to Mr. Trump’s interest in being flattered. And also I think Mr. Trump is, for whatever reason, either intimidated by Mr. Putin, afraid of what he could do or what might come out as a result of these investigations,” Brennan said.

James Clapper, the former director of national intelligence, called the threat from Russia “manifest and obvious.”

“To try to paint it in any other way is, I think, astounding and, in fact, poses a peril to this country,” Clapper said on “State of the Union.”

Questions about whether Trump believes the assessment about Russian election-meddling have trailed him since January, when he said for the first time, shortly before taking office, that he accepted that Russia was behind the election-year hacking of Democrats that roiled the White House race.

Trump told reporters traveling with him to Hanoi on Saturday that Putin had again vehemently denied the allegations. The two spoke during an economic conference in Danang, Vietnam. Trump danced around questions about whether he believed Putin but stressed Putin’s denials.

“Every time he sees me, he says: ‘I didn’t do that.’ And I believe — I really believe — that when he tells me that, he means it,” Trump said, arguing that it makes no sense for him to belabor the issue when Russia could help the U.S. on North Korea, Syria and other issues.

In Hanoi on Sunday, Trump also pointed to sanctions the U.S. has imposed on Russia as punishment for election meddling. “They were sanctioned at a very high level, and that took place very recently,” he said. “It’s now time to get back to healing a world that is shattered and broken.”

Trump was originally slated to depart Manila for Washington on Monday. He added a day to the schedule amid criticism that he would have missed the final summit.

Now Trump is slated to attend the Association for Southeast Asian Nations conference on Monday to urge allies to pressure North Korea to give up its nuclear weapons program. And he is expected, in meetings with other leaders, to push his agenda for bilateral, rather than multinational, trade agreements.

Associated Press writers Darlene Superville and Ken Thomas in Washington contributed to this report.