US President Donald Trump on Thursday for the first time linked a dispute over telecom giant Huawei, which he views as a threat to American security, with a deal to resolve the US-China trade war.

“Huawei is something that is very dangerous,” Trump told reporters at the White House. “You look at what they’ve done from a security standpoint, a military standpoint. Very dangerous.”

That notwithstanding, Trump said there is a “good possibility” Washington will reach an agreement with Beijing to end the escalating trade conflict, and that “it’s possible that Huawei would be included in a trade deal.”

The two sides have hardened their stands over Huawei, with the US blacklisting the smartphone and telecommunications company over worries that China uses it as a tool for espionage, while Beijing has accused Washington of “bullying” the firm.

Trump’s comments directly contradicted statements from US Secretary of State Mike Pompeo, who said just hours earlier that Huawei and the trade issue were not linked.

In an interview on CNBC, Pompeo stressed that there are two separate elements: “the national security component” and efforts “to create a fair reciprocal balanced trade relationship between the two countries.” “I hope that we can keep those issues in their own place. We have an imperative to protect American national security. We have a need to make sure we get these trade rules right,” Pompeo said.

Pompeo also rejected Huawei’s statements about its relationship with China’s government and said any data touched by the company is “at risk” of falling into the wrong hands.

“To say that they don’t work with the Chinese government is a false statement,” Pompeo said. Huawei “is deeply tied not only to China but to the Chinese communist party.” China had already drawn a link between the two issues, accusing the US of “bullying” Huawei.

Chinese Foreign Minister Wang Yi on Wednesday warned that Beijing was ready to “fight to the very end” in its trade war with Washington.

“The US use of state power to arbitrarily exert pressure on a private Chinese company like Huawei is typical economic bullying,” Wang said.