Maine lawmakers overrode Gov. Paul LePage’s veto of an adult-use marijuana regulatory bill Wednesday, putting the state on track to regulate a retail market that has been in limbo since voters legalized recreational marijuana use in 2016.

The proposal that survived the Republican governor’s pen was Maine’s second attempt to create a framework for the system after a veto of an earlier bill was upheld in 2017, sending a special committee that was convened to handle the issue back to rehash it.

This year’s bill, sponsored by Rep. Teresa Pierce, D-Falmouth, will set an effective tax rate of 20 percent on marijuana products, give Mainers priority for commercial licenses, and set health and safety standards for the market. It won’t open before LePage leaves office in early 2019.