Maine legalized medically assisted suicide on Wednesday, becoming the eighth state to allow terminally ill people to end their lives with prescribed medication.

Democratic Gov. Janet Mills, who had previously said she was unsure about the bill, signed it in her office.

“It is my hope that this law, while respecting the right to personal liberty, will be used sparingly,” said Mills.

Maine’s measure will allow doctors to prescribe a fatal dose of medication to terminally ill people. It declares that obtaining or administering life-ending medication is not suicide under state law, thereby legalizing the practice often called medically assisted suicide.

Read more at ABC News.