Democratic presidential contender Andrew Yang said on Monday he would support a national emergency at the U.S.-Mexico border under the right conditions.

“I would support it if it seemed like it was meant to actually generate more resources to solve the operational problems at the border,” the 44-year-old tech entrepreneur said during an interview with the Washington Examiner when asked if he supports President Trump's national emergency declaration.

Yang said Trump’s version of the national emergency was a “sensationalist diversion” rather than a serious attempt to bring more resources to the border. While he supports a national emergency if “necessary," Yang said it would be better to “go through existing channels.”

Trump declared a national emergency in February that diverted money from the defense budget toward a proposed wall along the southern border. The order prompted a swift legal challenge from 16 states.

Yang opposes a wall but supports tougher immigration policies than many of his fellow 2020 contenders. Yang says on his website, “We need to enforce the border.

In his CNN town hall on Sunday, Yang referred to the situation at the border as a “crisis” and said the federal government needs to send more resources and immigration enforcement officers to the border.

While Yang remains a long shot candidate, he raised almost $2 million dollars in the first quarter of fundraising and polled at 3% in an Emerson poll released Monday.

During a rally in Washington, D.C., Monday evening, the crowd booed when Yang brought up Trump’s wall.