U.S. and Afghan leaders laid the groundwork Monday for new relations between the two countries linked for years as war partners, including plans to seek American funding to maintain an Afghan security force of 352,000 and discussions about future U.S. troop levels as the war winds down.

The all-day session at the Camp David presidential retreat outside Washington included dozens of U.S. and Afghan officials, including Secretary of State John Kerry, Defense Secretary Ash Carter, Afghan President Ashraf Ghani and chief executive Abdullah Abdullah. The talks were aimed at relaunching a U.S.-Afghan relationship strained by nearly 14-years of war and America’s often-testy relations with the former president, Hamid Karzai.

During the meeting, the U.S. agreed to seek funding through 2017 for an Afghan force of 352,000, a level the nation has yet to meet. U.S. administration officials said the Afghan government is trying to improve recruiting to make up for security forces who leave the service or simply abandon their jobs.

They also agreed to require the Afghan government to complete specific reforms and meet other milestones in order to receive up to $800 million. U.S. officials said the Afghans suggested the incentive-based funding idea. The leaders of the two nations also said they would restart routine ministerial-level Defense and State Department meetings.

Ghani is expected to meet today with President Barack Obama, and officials anticipate the U.S. will use the session to make clear its decision to slow the pace of the withdrawal of American troops from Afghanistan.

Obama has promised to pull all remaining troops out by the end of his presidency. But deficiencies in the Afghan security forces, heavy casualties in the ranks of the Afghan army and police, a fragile new government and fears that Islamic State fighters could gain a foothold in Afghanistan have combined to persuade Obama to slow the withdrawal.

Instead of trimming the current U.S. force of 9,800 to 5,500 by the end of this year, U.S. officials say the administration now might keep many of them there well into 2016. Obama has said that after that, the U.S. will maintain only an embassy-based security force in Kabul of perhaps 1,000 troops.

Ghani, who has expressed worries about Islamic State militants trying to gain a foothold in his country, has pressed to keep more U.S. troops there longer, but Obama has promised to end the war in Afghanistan before his presidency ends in January 2017.

During a visit to the Pentagon on Monday, Ghani thanked U.S. troops and taxpayers for their sacrifices in nearly 14 years of war. He pledged that his impoverished country will not remain a burden to the West.

“We do not now ask what the United States can do for us,” Ghani said in remarks meant to bolster the Obama administration’s conviction that he is a reliable partner worth supporting over the long term. “We want to say what Afghanistan will do for itself and for the world. And that means we are going to put our house in order.”

On arrival at Camp David, Ghani emphasized what he called a new phase of the U.S.-Afghan relationship.

“It’s time for Afghanistan to reciprocate the gift that the United States has so generously provided over the years,” he said. “Reciprocating the gift means owning our problems, solving them and asking of ourselves what we must do for ourselves and for the region.”