Two of President-elect Donald Trump’s fiercest critics on the campaign trail have expressed willingness to work with him in the White House — with a few conditions.

Vermont independent Sen. Bernie Sanders campaigned vigorously against Trump in his own race for president and as a surrogate for Hillary Clinton. But on Wednesday, he said that Trump won because he tapped into similar anxieties that he has discussed throughout his political career.

“People are tired of working longer hours for lower wages, of seeing decent paying jobs go to China and other low-wage countries, of billionaires not paying any federal income taxes, and of not being able to afford a college education for their kids — all while the very rich become much richer,” Sanders said in a statement.

Sanders said that to the degree that Trump is willing to improve the lives of middle-class families, he would be willing to work with him.

But “to the degree that he pursues racist, sexist, xenophobic and anti-environment policies, we will vigorously oppose him,” Sanders said.