Sometimes, it helps to pay attention to your favourite TV shows.

A quick-thinking father is crediting the TV show “The Office” with helping save his four-year-old daughter’s life.

Matt Uber was playing a game of tag with his daughter Vera Posy when she suddenly collapsed on the floor.

While speaking with NBC’s “Today,” the 46-year-old said he had assumed his daughter tripped and hit her head but when he picked her up off the ground, “she was limp” and her eyes had “rolled back.”

It’s every parent’s actual worst nightmare. Luckily, Uber remembered what to do thanks to a chaotic scene from the NBC sitcom, which originally aired nearly a decade before.

What a Father Did To Save His Daughter’s Life — Thanks to “The Office”

Remarkably, Uber claims he was never taught how to properly perform CPR and credits his entire life-saving maneuver to the two-part episode of the series called “Stress Relief” that initially aired in 2009.

While Uber was using CPR (cardiopulmonary resuscitation) to try to resuscitate his daughter, Uber’s wife, Erin, called 911 and the operator helped to keep the family calm.

CPR is an emergency procedure that can be performed to save someone’s life if they’ve gone into cardiac arrest. During cardiac arrest, the heart cannot pump blood to the rest of the body, including the brain and lungs.

RELATED: Teen Calls 911 After Burglars Enter Her House – The Woman Who Answered May Have Saved Her Life

“I remembered to lift her neck and make sure that she wasn’t choking or having a seizure,” Uber recalled. “I was panicked, and it was chaotic. In the meantime, the wonderful 911 operator got on and talked me through the process.”

When paramedics arrived, they used a defibrillator to jump-start young Vera Posy’s heart before she was rushed to a nearby hospital. Doctors diagnosed the four-year-old with calmodulinopathy, a rare and potentially life-threatening condition that causes children to have irregular heartbeats.

After her hospital stay, doctors put an implantable cardioverter-defibrillator (ICD) into Vera Posy’s abdomen which would jump-start her heart if another cardiac arrest ever occurred again.

RELATED: 9-Year-Old Is Kidnapped by Family Friend and Hidden Behind a Wall – What She Does Next Saves Her Own Life

After the diagnosis, doctors put an implantable cardioverter-defibrillator (ICD) in the girl’s abdomen, which will jump-start her heart if it stops again.

At the time, Uber said when he was quickly thinking about what to do, his mind “literally went to that episode of ‘The Office’ where they are doing the CPR training.” He admits it was “just what kicked in” to his head and that it was “very fortunate.”

Since the devastating scare, young Vera Posy is recovering well and the NBC article says she is getting back to a normal life.

The Scene From “The Office” That You Can Also Use to Remember CPR

(The Office/YouTube)

During the “Stress Relief” episode, Michael Scott (Steve Carrell) arranges for a CPR class after his employee, Stanley Hudson, suffers a heart attack.

In the iconic episode, the Dunder Mifflin employees attend an at-work CPR training session which comically transformed into an office-wide rendition of the Bee Gee’s hit, “Stayin’ Alive.”

“A good trick is to pump to the tune of ‘Stayin’ Alive’ by the Bee Gees. Do you know that song?” asks the trainer in the episode. “Yes, I do. I love that song,” responds an always aloof Scott, before signing, “First I was afraid, I was petrified …” mistakenly singing the Gloria Gaynor classic “I Will Survive.”

RELATED: 19 Funny Michael Scott Quotes to Ease your Day at the Office

“No, it’s – Ah, ah, ah, ah, stayin’ alive, stayin’ alive,” the trainer interrupts as she instructs the actual song — which turns out to be factually beneficial for CPR.

While recalling the episode, Uber says he placed his hands on the right spot of his daughter’s stomach and began compression to the beat of the Bee Gee’s classic. In the episode, the CPR training session turns absolutely chaotic as the entire office begins singing, completely disregarding the taste at hand.

Erin Uber says that every second that her husband didn’t use CPR, it increased the risk of neurological damage for their daughter — or worse. “Don’t hold back on learning CPR,” she said.

Even if that means perfecting it from an iconic comedy series. Hey, whatever works.

KEEP READING:

Wife Brings Husband Back To Life With CPR One Hour After His “Death”