Bernie Sanders plans to vote for Hillary Clinton in the U.S. presidential election.

In an interview on MSNBC’s Morning Joe on Friday, the Vermont senator said “yes” without hesitation when asked if he would vote for Clinton, the Democratic Party’s presumptive nominee, in November.

“I’m going to do everything I can to defeat Donald Trump,” Sanders said. “I think Trump, in so many ways, would be a disaster for this country if he were to be elected president. We do not need a president whose cornerstone of his campaign is bigotry.” In an interview on CNN, Sanders reiterated his plan, though he left some wiggle room, saying that “in all likelihood” his vote would go to Clinton in November.

If it wasn’t clear that the Democratic primary race is effectively over, it is now. In recent days, Sanders has turned his attention away from contesting the nomination and toward an effort to shape the Democratic agenda. He even acknowledged in a C-SPAN interview released on Wednesday that he didn’t expect to win the race. “It doesn’t appear that I’m going to be the nominee,” he said.

That doesn’t mean he’s not still fighting—or that he’s dropping out of the race. “What my job right now is, is to fight for the strongest possible platform in the Democratic convention,” Sanders told MSNBC. “That means a platform that represents working people that stands up to big-money interests.” When asked why he won’t withdraw from the race, Sanders said: “Why would I want to do that when I want to fight to make sure that we have the best platform that we possibly can.” A spokesman for Sanders said that the senator is still a candidate in the presidential race, and that his remarks on MSNBC did not constitute an endorsement of Clinton.