PYONGYANG, North Korea (AP) - U.S. Secretary of State Mike Pompeo arrived in North Korea on Wednesday to finalize details of a historic summit planned between President Donald Trump and North Korean leader Kim Jong Un.

Trump announced the mission in Washington on Tuesday just minutes before Pompeo arrived in Japan to refuel before flying on to Pyongyang, and as the president declared he was withdrawing from a landmark nuclear deal with another bitter U.S. adversary, Iran.

U.S. officials say Pompeo will also press North Korea for the release of three detained American citizens, whose imminent release Trump has been hinting at. His trip comes just days after North Korea expressed displeasure with Washington for comments suggesting that massive U.S. pressure had pushed Kim to the negotiating table.

Pompeo, who first traveled to North Korea as CIA chief in early April, is only the second sitting secretary of state to visit the reclusive nation with which it is still technically at war. The first was Madeleine Albright in 2000 who went as part of an unsuccessful bid to arrange a meeting between then-President Bill Clinton and Kim’s father Kim Jong Il.

“At this very moment, Secretary Pompeo is on his way to North Korea in preparation for my upcoming meeting with Kim Jong Un,” Trump said at the White House.

“Plans are being made, relationships are building, hopefully a deal will happen and with the help of China, South Korea and Japan a future of great prosperity and security can be achieved for everyone,” he said.

Pompeo flew out of Washington under cover of darkness late Monday aboard an Air Force 757 accompanied by a handful of senior aides, a security detail and two journalists: one from The Associated Press and one from The Washington Post, who were given roughly four hours’ notice of his departure. The flight arrived Wednesday morning and North Korean officials were on hand to greet the American diplomat.

Pompeo’s first trip to Pyongyang over Easter weekend before he was confirmed as secretary of state was a closely held secret. News of it did not emerge just before his Senate confirmation vote less than two weeks ago. Shortly afterward, the White House released photographs of Pompeo and Kim posing for cameras. It was not clear if Kim would meet Pompeo on Wednesday.

Pompeo told reporters aboard his plane that his first visit was to test the North Korean’s seriousness of pledges to South Korea on easing tensions. This trip is “to put in place a framework for a successful summit,” he said.

Although there were no guarantees that the American prisoners would be freed during Pompeo’s visit, U.S. officials said their release would be significant goodwill gesture ahead of the Trump-Kim summit that is expected later this month or in early June.

“I think it would be a great gesture if they would agree to do so,” Pompeo said, adding that it would be difficult to hold a leaders’ summit if the prisoners remained captive. The three Korean-Americans - Kim Dong Chul, Kim Hak Song and Tony Kim - are all accused by the North of anti-state activities.

Trump has said that a time and place for the summit have been decided but has not said where and when it will be. Pompeo’s visit to Pyongyang aims to lock down the date and venue for a formal announcement to be made. It came just a day after Kim returned from China, his second trip to the neighboring country in six weeks to meet with President Xi Jinping.

A Trump-Kim meeting seemed a remote possibility just a few months ago when the two leaders were trading threats and insults over North Korea’s development of nuclear weapons and ballistic missile tests. But momentum for diplomacy built this year as North and South Korea have moved to ease tensions, including with their own leaders’ summit late last month.

In March, Trump unexpectedly accepted an offer of talks from Kim after the North Korean dictator agreed to suspend nuclear and missile tests and discuss “denuclearization.” According to South Korea, Kim says he’s willing to give up his nukes if the United States commits to a formal end to the Korean War and pledges not to attack the North.

Kim was quoted as saying Monday by China’s official news agency Xinhua: “I hope to build mutual trust with the U.S. through dialogue.” He added that a political resolution of tensions on the Korean Peninsula and denuclearization should proceed in stages, with all sides moving in concert.

But his exact demands for relinquishing weapons that his nation spent decades building remain unclear. Previous U.S. efforts to negotiate an end to the North’s nuclear weapons program failed under Presidents Clinton and George W. Bush.

Pompeo and officials traveling with him said the Trump administration would not repeat mistakes of the past, which they described as accepting gradual, incremental and long-term disarmament in exchange for immediate benefits. One senior official said Trump and Pompeo were looking for “a bold approach” that would fundamentally alter the security situation.

“We are not going to head back down the path that we headed down before,” Pompeo said. “We will not relieve sanctions until such time as we have achieved our objectives. We’re not going to do this in small increments where the world is essentially coerced into relieving economic pressure.”

Trump has said that withdrawing U.S. forces from South Korea is “not on the table.” Some 28,500 U.S. forces are based in the allied nation, a military presence that has been preserved to deter North Korea since the war ended in 1953 without a peace treaty.

After weeks of positive signals, though, North Korea on Sunday dismissed what it called “misleading” claims that Trump’s policy of maximum political pressure and sanctions are what drove the North to talks. A North Korean foreign ministry spokesman warned the claims are a “dangerous attempt” to ruin a budding detente on the Korean Peninsula after the summit between Kim and South Korean President Moon Jae-in.

“The U.S. is deliberately provoking the DPRK at the time when the situation on the Korean Peninsula is moving toward peace and reconciliation,” the spokesman was quoted as saying. DPRK is short for the Democratic People’s Republic of Korea, the North’s formal name.

The statement seemed aimed at strengthening Kim’s position going into his meeting with Trump. Pyongyang claims Kim himself is the driver of the current situation and the spokesman said the U.S. should not to interpret Pyongyang’s willingness to talk as a sign of weakness.