U.S. President Donald Trump said he’d consider arming Ukraine with long-range Tomahawk missiles that would allow strikes deeper into Russia, but said he may first talk to Russian President Vladimir Putin about it in a bid to end the war.

Trump said that he discussed the powerful weapons when he spoke with Ukrainian President Volodymyr Zelenskyy over the weekend.

"We talked about that and so we’ll see,” Trump told reporters Sunday on Air Force One as he flew to the Middle East to champion his peace deal there. He said he might use the Tomahawk sale as leverage with Putin to end the war. "I might say, ‘Look, if the war’s not going to get settled, I may send them Tomahawks.’”

Trump’s comments signal an openness to expanding the range of weaponry provided to Ukraine but also that he remains focused on a ceasefire. "If the war is not settled, then we may very well do it. We may not, but we may do it,” he said.

Trump and Zelenskyy spoke both Saturday and Sunday, with the Ukrainian leader saying they discussed "long-range capabilities,” among other things. Zelenskyy said the calls were "very productive.” Trump said they also discussed Ukraine’s need for more Patriot missiles, saying Kyiv needs more "very badly.”

Trump said he told Zelenskyy that he might first issue a threat to Russia before actually sending Tomahawks — which he called "a new step of aggression” — to Ukraine. "Do they want to have Tomahawks going in their direction? I don’t think so. I think I might speak to Russia about that, in all fairness,” the president said.

Trump said he favors having U.S. weapons provided to North Atlantic Treaty Organization (NATO) countries and then routed to Ukraine, though it’s not clear what specific mechanism he’d envision for any Tomahawk sales.

Still, Trump said broadly that the U.S. was open to Ukraine receiving more American-made weaponry, as long as it doesn’t overly deplete U.S. stockpiles.

"They need more weapons and we’re looking into doing that. We hope we’re going to be able to provide them. You know, our country needs weapons, too. We can’t give so many weapons that we don’t have weapons — you never know what’s going to happen,” he said.