An emotional Theresa May announced her resignation Friday, but she’s not ready to leave her role of prime minister just yet. Fighting back tears, May said she’ll resign as Conservative party leader on June 7, sparking a contest to succeed her, but she will stay on as prime minister until a new leader is in place. The timetable will also allow her to remain in power for Donald Trump’s upcoming state visit. May said she had “done [her] best” to honor the EU referendum result, and that is was a matter of “deep regret” that she had been unable to deliver Brexit. May has been forced out following her utter failure to win domestic support for a deal she struck with the European Union to allow the U.K. to leave the bloc in a relatively seamless way. Conservative leadership elections are notoriously had to predict, but former foreign secretary Boris Johnson is currently party members’ favorite to succeed her. May’s been prime minister since 2016 when David Cameron resigned after a majority voted for Britain to leave the EU.