Trump, speaking with reporters on the White House lawn before departing for the Army-Navy football game in Philadelphia, said he would announce a replacement for Kelly, perhaps on an interim basis, in the next day or two.

“John Kelly will be leaving — I don’t know if I can say ‘retiring,'” the president said. “But he’s a great guy. John Kelly will be leaving at the end of the year.”

The leading candidate to replace Kelly is Nick Ayers, Vice President Mike Pence’s chief of staff and a Republican political operative, who possesses the kind of savvy about campaigns that Trump has craved. Kelly, a career military officer before becoming Trump’s first homeland security secretary, lacked such experience.

Ayers, 36, has told Trump he would serve on an interim basis through the spring, when his family will return to Georgia, according to people familiar with the discussions. But Trump, who frets about the image of a White House in constant chaos, wants a full-time replacement and is eager for Ayers to stay for the duration.

If the president ultimately turns to another candidate, potential choices include Treasury Secretary Steven Mnuchin; his budget director, Mick Mulvaney; and the U.S. trade representative, Robert Lighthizer.

Kelly’s coming departure leaves Trump with an ever-shrinking team of close advisers as he begins to navigate the new power structure on Capitol Hill that will be ushered in next month when Democrats assume control of the House.

The chief of staff’s exit also adds another prominent name to the list of core advisers who have left after trying to manage the president through his nearly two years in office, often finding themselves shunned and sidelined for their efforts.

Kelly did not show up to work Friday. But Trump and Kelly met in the White House residence Friday night and hashed out the details of a departure that had been anticipated for months, according to people familiar with the meeting. Pence and Ayers also attended the meeting.

Kelly had planned to announce his departure to senior staff members Monday, but Trump pre-empted him on the South Lawn on Saturday afternoon.

Although the president had previously made a display of saying that Kelly, 68, would stay through the 2020 re-election effort, the chief of staff had been blunt with several people in the White House that he planned to make it only through the midterms.

Presidents typically make changes in staffing after midterm elections. During a wide-ranging news conference the day after the vote, the president deflected questions about the job security of Kelly and Jeff Sessions, the attorney general at the time. Sessions was forced out later in the day in a Twitter post.

“People leave,” Trump said at the time, adding that he had not heard anything about Kelly leaving.

“It’s a very exhausting job — although I love doing it, I must tell you — but it’s exhausting for a lot of people,” Trump said. “I’m surprised that a lot of people, they start off, they’re young people. They’re there for two years, and they’re old by the time they leave.”

Kelly’s resignation had long been rumored amid signs that he and Trump had grown irritated with each other. The president — as freewheeling as Kelly is methodical — privately fumed that he believed his chief was hiding things from him, and frequently upbraided him in the West Wing on matters large and small.

The chief of staff, who often said privately that he did not believe that Trump appreciated or understood his own job, had taken to telling colleagues “I don’t need this” after such criticism from the president.

Yet for months, the dysfunctional dynamic continued without a firing or a resignation.

This article originally appeared in The New York Times.