Puerto Rico’s governor signed an executive order authorizing the use of medical marijuana in the U.S. territory in an unexpected move following a lengthy public debate.

Gov. Alejandro Garcia Padilla said on Sunday the island’s health secretary has three months to issue a report detailing how the executive order will be implemented, the impact it will have and what future steps could be taken. The order went into immediate effect.