(CNN) More than 20 years ago, Terri Mattula's dog Gator passed out while her husband was walking him.

They took Gator to the vet and learned he had a third-degree heart block and needed a pacemaker. However, they were both students at the time and couldn't afford one.

"That's urgent arrhythmia," Mattula said. "If a person had that kind of block, within 24 hours they'd have a pacemaker."

Now a nurse, Mattula -- who has worked in cardiology for about 17 years -- has started a donation program to recycle used pacemakers to help animals like her old friend, Gator.

"I get a lot of arrhythmia patients and there is a large amount of pacemaker work," Mattula said. "Explanted pacemakers are normally thrown away."

She recycled her husband's pacemaker

Two years ago, Mattula's husband had to get a new pacemaker after his heart condition progressed. But remembering Gator, who died years ago, Mattula kept his old pacemaker in the hope of donating it to someone in need.

She contacted the University of Georgia's veterinary school, which had helped one of her other dogs.

"I have this practically new device. Are you interested in it?" she told them.

Her call led to UGA and Navicent Health, which includes the hospital in Macon, Georgia, where Mattula works, partnering to recycle used pacemakers for use in dogs and other animals.

"Ultimately what came out of this was a fantastic collaborative program," said Gregg Rapoport, clinical assistant professor of cardiology at UGA's College of Veterinary Medicine.

The devices are pricey

A pet pacemaker typically costs about $3,000 to $3,500, whereas a brand-new pacemaker for a human can cost upwards of $8,000.

But animals can also use pacemakers when they're no longer needed by humans to help regulate heart rate.

"Technology has pretty much advanced where most pacemakers have about five years left in them when we receive them," Rapoport said.

UGA has received about 65 pacemakers since the program officially started in February 2018, Mattula said.

Donated pacemakers that are too large or too old are used for teaching purposes.

It's currently finishing up its inventory of pacemakers from another supplier and hopes to be fully reliant on the donated pacemakers from Navicent by the fall, Rapoport said.

"This has been fantastic ... and it's an incredibly neat relationship that we have with Navicent," Rapoport said.

UGA has received phone calls from people all over the place asking how they can donate a pacemaker, but for now Rapoport says UGA can take only those devices that are donated directly to Navicent.

She's already helped other dogs

Agent Cooper was given one of the donated pacemakers.

One of the dogs that received a pacemaker through the program is a husky named Agent Cooper, and it helped him survive thyroid cancer surgery.

The device gave him another three years to live.

"It was just awesome. It filled my heart," Mattula said, adding Agent Cooper is now healthy and running around.

Mattula and her husband currently own four dogs.

"I would pretty much do anything for them," the nurse said.

"I know other pet owners that have the same love for their pets and ... when you get a diagnosis that can be very scary, it's very difficult, it's very emotional to think you might lose your animal and they're suffering."