Only days after her biggest Democratic opponent, Sen. Bernie Sanders, introduced legislation that aims to deschedule marijuana as a federal outlaw drug, Hillary Clinton announced that she would back a similar move.

The former secretary of state said over the weekend that she’s in favor of removing cannabis from the top level of outlaw drugs, known as Schedule I. That classification means there’s no legal use whatsoever for pot, and it puts weed in the same category as heroin.

Clinton said marijuana would be better served if it were a Schedule II drug, a group of substances that are tightly regulated as legit medicine with “a high potential for abuse” and “severe psychological or physical dependence,” according to the DEA.

“I do support the use of medical marijuana,” Clinton told a town hall in South Carolina Saturday.

She also said she thinks that more research is needed to determine the benefits of the drug.

“I think even there we need to do a lot more research so that we know exactly how we’re going to help people for whom medical marijuana provides relief,” Clinton said.

The presidential candidate previously said that “we have got to stop imprisoning people who use marijuana.”