Israel’s National Security Council has lowered its travel warning for Turkey from high to medium after it asked Israelis to leave the country about two weeks later amid possible Iranian plans to attack them.

“I thank our security forces and Turkish forces who have worked in recent months and weeks to prevent attacks against Israelis in Istanbul and Turkey,” Israeli Prime Minister Naftali Bennett said.

Israel called on its citizens in Turkey to leave Istanbul immediately because they faced “real and immediate danger” from Iranian agents. And the Jewish state has raised the Istanbul travel warning to level four, which is the highest.

Reports reported Iranian agents’ readiness to harass and kidnap Israeli tourists a month ago, and that the plot was thwarted after Israel alerted Ankara to the threat.

Foreign Minister Yair Lapid visited Ankara and thanked Turkey for its “deliberate and coordinated action” to prevent the attacks.

For its part, Iran denied Israel’s allegations, calling them “ridiculous.”