Ukrainian President Volodymyr Zelensky has officially signed a bill to legalize medical marijuana—a step that he and other officials say can help soldiers address physical and mental wounds incurred during the nation’s war with Russia.

About one month after the legislation was “unblocked” from advancing to the president’s desk as an attempt to overturn the reform failed in the country’s parliament, Zelensky gave final approval to the bill on Wednesday.

The law will take effect within six months of being formally published, with the Cabinet of Ministers of Ukraine and the Ministry of Health tasked with developing rules for the program during that time.

Ukraine could start importing marijuana products sooner, after cannabis is moved from strictly prohibited under List I to available for medical use with a prescription under List II of the country’s drug code.