California firefighters revived a 90-year-old woman’s dog with CPR after it got trapped in a house fire on Wednesday night, video footage reveals.

Footage of the heroic rescue obtained by the Sacramento Bee shows Sacramento Metro Fire District officials carrying a small dog, named Dicky, out of an Arden Area home in Sacramento County just after 8 p.m. Wednesday.

The dog is unresponsive at first, but after firefighters perform CPR on the animal, he kicks his legs and appears to be OK.

Firefighters told CBS that they used a pet oxygen mask to save Dicky because a dog’s snout is shaped differently than a human face. They carry several sizes of animal masks on their truck at all times should an animal be in danger. Fire responders and good Samaritans in California are protected by law if they decide to help dogs and cats during emergencies.

Officials also rescued the dog’s wheelchair-bound owner, who was not injured. They extinguished the fire, which began in a bedroom, in under 15 minutes.