US Secretary of State John Kerry arrived in Kabul on Thursday to pressure feuding presidential candidates to resolve the disputed election result that risks triggering instability as NATO troops withdraw.

Allegations of massive fraud in Afghanistan’s June election tipped the country into a political crisis, with the United Nations voicing fears that the contested outcome could revive the ethnic divisions of the 1990s civil war.

Kerry last month negotiated a deal in which poll rivals Ashraf Ghani and Abdullah Abdullah agreed to a complete an audit of the eight million votes, and for the winner to form a national unity government.

But the deal has made little progress due to further disagreements between the candidates, and no date has yet been set for the delayed presidential inauguration.

The clock is now ticking for a new president to be in office before the end of this month ahead of a NATO summit on September 4-5, when member states will decide on future finance and support for the war-torn country.

For security reasons, Kerry’s visit was not announced before he landed.