DUBAI, United Arab Emirates (AP) — Iran kept up its attacks on Persian Gulf neighbors on Wednesday as airstrikes pounded Tehran, while U.S. President Donald Trump again made contradictory statements about whether he was ready to wind down the war or escalate it.

Trump struck a hard line Wednesday in a Truth Social post, demanding that Iran stop blocking the Strait of Hormuz — the waterway vital to global oil supplies — or the U.S. would bomb the Islamic Republic “back to the Stone Ages.” A day earlier, Trump said the U.S. “will not have anything to do with” ensuring the security of ships passing through Hormuz; that was an apparent backtrack from an earlier threat to attack Iran’s power grid and other infrastructure if it didn’t open the strait by April 6.

Trump, who is scheduled to give a televised address Wednesday evening, said Tuesday he could walk away from the war in two to three weeks once he felt confident Iran would not be able to build a nuclear weapon — even if Tehran does not agree to a ceasefire.

But his latest Truth Social post struck a more belligerent tone as more American troops move into the region for a possible ground offensive after weeks of airstrikes targeting Iran.