When the law caught up with Raejean Icard, she was several weeks pregnant and terrified of giving birth behind bars.
Fellow inmates at Shakopee women's prison did their best to prepare her to deliver under the gaze of corrections officers. No family members would be allowed in the room and she might be shackled, they warned.
But to Icard's surprise, when she went into labor in May, she was treated like any other new mother at St. Francis Regional Medical Center, where offenders routinely receive care.
Less than two years before, Autumn Mason had a very different experience.
"Neither me nor my child were treated like human beings," recalled Mason, who is on work release after serving two years at Shakopee for criminal vehicular homicide. "I am just one of many women who had uncomfortable, incomplete and even some embarrassing, degrading experiences."
Mason, now 29, has become a driving force in a movement that has Minnesota officials rethinking how pregnant inmates should be treated. Her efforts helped overhaul state Department of Corrections guidelines to help make childbirth for inmates more closely mirror what women experience outside of prison.
Change had already begun with a 2014 anti-shackling law that went into effect two weeks after Mason delivered her daughter. It made Minnesota the 20th state to outlaw the use of restraints during and just after childbirth. It also became the first state to guarantee offenders access to birth coaches, called doulas.
More recent changes pushed by Mason and others ensure that expectant mothers receive parenting courses, additional food, and a breast pump to maintain milk production in cases where a new mother will be released soon enough to breast-feed at home.