MINNEAPOLIS (WCCO) — With a baby on the way within hours, Ashley Goette found herself with her husband’s life also in her hands.

“The dispatcher walked me through CPR, ’cause I am not trained. They wanted me to get him down to a hard surface and I explained to them that I couldn’t because I am 39 weeks pregnant,” Goette said.

READ MORE: Andover Residents With Contaminated Drinking Water Are Frustrated, Want Answers

An ambulance took Andrew to United Hospital in St. Paul.

“I don’t think Andrew would be here today if it weren’t for the actions of Ashley,” Dr. Alex Tetters said.

Doctors determined Andrew had gone in to cardiac arrest and had an an irregular heart rhythm. They sedated him, not sure how he would respond when he woke up.

“I went home that first night, thinking, ‘This can’t happen, this guys has got to hold his baby,'” ICU nurse Libby Remmers said.

READ MORE: Man Shot In Jaw While Driving In St. Paul

Andrew woke up without any signs of brain injury, and then a day later, Ashley went into labor.

Doctors delayed a heart procedure on Andrew, so he could be with his wife and hold her hand through the delivery of their baby.

“I was just so excited to be able to see him be born,” Andrew said. “We started out trying a natural birth.”

But Ashley needed an emergency C-section and was moved into the surgical unit. Andrew watched through FaceTime on his phone.

“All of that is nothing. He is coming home and that is all that matters,” Ashley said.

MORE NEWS: Parents Split On Whether They'll Vaccinate As Pfizer Touts Effectiveness With Kids 5 To 11

To help the Goette family with mounting medical costs, visit their GoFundMe.