Iran’s president issued a direct threat to the West on Tuesday, claiming his country is capable of restarting its nuclear program within hours and quickly bringing it to even more advanced levels than in 2015, when Iran signed the nuclear deal with world powers.

The bill and Rouhani’s comments are seen as a direct response to the new U.S. legislation earlier this month that imposed mandatory penalties on people involved in Iran’s ballistic missile program and anyone who does business with them. The U.S. legislation also applies terrorism sanctions to the Revolutionary Guard and enforces an existing arms embargo.

If Washington continues with “threats and sanctions” against Iran, Rouhani said in parliament on Tuesday, Tehran could easily restart the nuclear program. “In an hour and a day, Iran could return to a more advanced (nuclear) level than at the beginning of the negotiations” that preceded the 2015 deal, Rouhani said.

The landmark agreement between Iran and world powers two years ago capped Iran’s uranium enrichment levels in return for the lifting of international sanctions. It was not immediately clear what Rouhani was referring to and whether he meant Iran could restart centrifuges enriching uranium to higher and more dangerous levels.

Iran long has insisted its atomic program is for peaceful purposes despite Western fears of it being used to make weapons. Rouhani’s remarks were likely an attempt to appease hard-liners at home who have demanded a tougher stand against the United States. But they are also expected to ratchet up tensions further with the Trump administration.

Iran has said the new U.S. sanctions amount to a “hostile” breach of the 2015 nuclear deal.

“The U.S. has shown that it is neither a good partner nor a trustable negotiator,” Rouhani added. “Those who are trying to go back to the language of threats and sanctions are prisoners of their past hallucinations. They deprive themselves of the advantages of peace.”

But Rouhani also tempered his own threat, adding that Iran seeks to remain loyal to its commitments under the nuclear deal, which opened a “path of cooperation and confidence-building” with the world.

“The deal was a model of the victory of peace and diplomacy over war and unilateralism,” said Rouhani. “It was Iran’s preference, but it was not and will not remain Iran’s only option.”