Mexican President Enrique Pena Nieto on Thursday proposed legalizing marijuana-based medicines, raising the amount users can carry and freeing inmates on minor weed charges, in a major shift amid regional efforts to reboot drug policy.

Pena Nieto, who is grappling with deadly drug cartel violence, said he will send to Congress a proposal to permit the use and importation of marijuana-based medicines, and raise the amount that weed users can legally carry to 28 grams from 5 grams.

Growing and selling marijuana is illegal in Mexico and a mainstay business of violent drug gangs. Pena Nieto did not say where consumers would be able to obtain the weed they are then allowed to carry.