Bernie Sanders endorsed Hillary Clinton on Tuesday, a move that may go a long way toward unifying Democrats as Clinton prepares to accept the nomination in Philadelphia later this month.

“Hillary Clinton will be the Democratic nominee for president and I intend to do everything I can to make sure she will be the next president of the United States,” Sanders said at a rally in Portsmouth, N.H.

Clinton said that Sanders has “energized and inspired a generation of young people who care deeply about our country.”

Over the weekend, Sanders’ campaign expressed satisfaction with changes in the Democratic party platform over issues like climate change and a $15-per-hour federal minimum wage. Clinton also said that she would advocate expanding healthcare, including extending Medicare to those over 55 and pursuing a public insurance option.

“Hillary Clinton understands that we must fix an economy in America that is rigged and that sends almost all new wealth and income to the top one percent,” Sanders said at the rally, as Clinton stood to the side of him and nodded in agreement.

Sanders’ campaign, however, failed to get robust language in the draft platform opposing the Trans-Pacific Partnership, a key issue he brought up in the campaign. Clinton also opposed the trade deal, but it is part of President Obama’s agenda in the final year of his term.

Sanders acknowledged that “it is no secret that Hillary Clinton and I disagree on a number of issues. “

“But I am happy to tell you that at the Democratic Platform Committee which ended Sunday night in Orlando, there was a significant coming together between the two campaigns and we produced, by far, the most progressive platform in the history of the Democratic party.” He said that “our job now is to see that platform implemented by a Democratically controlled Senate, a Democratically controlled House and a Hillary Clinton presidency. And I intend to be in every corner of this country to make certain that happens.”

Clinton credited Sanders for his “lifetime of fighting injustice.” She and Sanders each criticized Republican rival Donald Trump, characterizing him as a divider.

Trump tweeted on Tuesday, “I am somewhat surprised that Bernie Sanders was not true to himself and his supporters. They are not happy that he is selling out!”

Later, he sent a more provocative tweet. “Bernie Sanders endorsing Crooked Hillary Clinton is like Occupy Wall Street endorsing Goldman Sachs.”