President Donald Trump said Sunday that the United States could remain in Iran after the current conflict and “keep the oil,” raising the possibility of a longer-term U.S. presence in the country.

Speaking to reporters while attending the Irish Open golf championship in Ireland, Trump compared the idea to the administration’s recent actions involving Venezuela’s oil resources.

“We’ll ultimately get out of Iran, unless we decide to stay and keep the oil like Venezuela,” Trump said. He added that U.S. revenue from Venezuela had “paid for the war many times.”

Trump did not provide details about what remaining in Iran or controlling its oil would involve. His comments came as the conflict continues to disrupt energy markets and shipping in the Middle East.

Trump also maintained that he expects the war with Iran to end this year, potentially after the November midterm elections. He said he would agree to a deal only if it was the “right deal” and said Iran was “calling constantly” about peace talks, although Iranian officials have previously rejected that characterization.

The president also addressed the effect of the conflict on American fuel prices, saying gasoline would “drop like a rock” once the war ends.

Oil markets have remained volatile as fighting and attacks on energy infrastructure threaten regional supplies. A drone attack recently damaged a major Saudi oil pipeline, while disruptions around the Strait of Hormuz have affected the movement of crude and other petroleum products. Reuters reported Sunday that oil prices were expected to rise when markets reopened following the latest attacks.

Trump’s comments come as his administration faces continued pressure over the economic effects of the conflict, particularly rising fuel prices. The White House is also considering measures to increase U.S. refining capacity as it responds to the energy disruption.