Ohio Governor John Kasich has signed a bill that bans abortion in the state after 20 weeks of pregnancy, but he also vetoed a bill that would have made abortion illegal when a fetal heartbeat can be detected, usually at about the sixth week of pregnancy.

The Pain-Capable Unborn Child Protection Act, or SB 127, becomes law 90 days after the December 13 signing. It is the 18th anti-abortion measure Kasich has signed since becoming governor in 2011.

Current Ohio law bans abortions after a fetus has begun its 20th week of gestation, unless a doctor determines that the fetus is not viable outside the womb.