VALPARAISO, Ind. (CBS) — A pregnant Indiana woman has been sentenced to six years in prison, for taking $40 in a heroin deal.

Trista Breneman, 26, was sentenced to the mandatory minimum of 6 years on Monday as part of a plea agreement approved by Porter Superior Court Judge Roger Bradford. It was her third felony conviction.

READ MORE: Bobcat Spotted, Photographed By Wildlife Ecologist At Will County Nature Preserve

Breneman, of Lake Station, Ind., had admitted to taking part in a drug deal, while the man she was with made the delivery.

Bradford commended Breneman for finally seeking treatment in a methadone clinic and through Narcotics Anonymous and encouraged her to find treatment programs in prison, which would also reduce her time.

Breneman admitted being a heroin addict and had gotten involved in drugs while young and living with a mother addicted to cocaine.

READ MORE: 'We Are Forcing Them To Listen' Protest Organizers Say Despite The Chauvin Verdict, Their Work Continues

Her sentence included four years probation, where she’ll be required to get treatment after prison.

Bradford denied her request to serve the prison term after her pregnancy.

“I have had more than one person addicted to heroin who did not live long enough to turn themselves in. I don’t want to take that chance with you,” he said.

MORE NEWS: Mayor Lori Lightfoot Stands Behind CPD Supt. David Brown, Angrily Shoots Down Rumors He's On His Way Out

(The Sun-Times Media Wire contributed to this report.)