North and South Korea on Wednesday agreed to a series of measures they claim could end the threat of nuclear war on the peninsula.

North Korean dictator Kim Jong Un appeared in a joint press conference with South Korea President Moon Jae-in and promised to permanently dismantle a missile engine test site and a launch pad — with international inspectors on hand to witness it.

Moon added that the North would be willing to take down its primary Nyongbyon nuclear complex if the United States agrees to corresponding measures, though they didn’t say which measures.

They also announced an agreement to establish buffer zones along their land and sea borders in hopes of reducing tensions and preventing any accidental attacks in the future.

The two Koreas also agreed to form a joint military committee to evaluate how to reduce tensions and maintain communication to defuse future potential crises and prevent accidental clashes.

Kim said he will visit Seoul in the near future, in what would be the first visit by a North Korean leader to the capital of the South.

Both nations’ defense chiefs also signed off on a deal to withdraw a number of guard posts along the demilitarized zone by December in hopes of removing them altogether at some point.

President Trump hailed the progress made by the two Korean rivals.

“Kim Jong Un has agreed to allow Nuclear inspections, subject to final negotiations, and to permanently dismantle a test site and launch pad in the presence of international experts,” he tweeted.

“In the meantime there will be no Rocket or Nuclear testing. Hero remains to continue being returned home to the United States. Also, North and South Korea will file a joint bid to host the 2032 Olympics. Very exciting!”

This summit is considered a step forward from stalled negotiations between Pyongyang and Washington over the North’s nuclear program. Kim had met Trump in Singapore in June and agreed to progress toward denuclearization.