JEKYLL ISLAND, Ga. (AP) — Coast Guard rescuers pulled four trapped men alive from a capsized cargo ship Monday, drilling into the hull’s steel plates to extract the crew members more than a day after their vessel overturned while leaving a Georgia port.

All four were described as alert and in relatively good condition and were taken to a hospital for further evaluation.

“Best day of my 16-year career,” Lt. Lloyd Heflin, who was coordinating the effort, wrote in a text message to The Associated Press.

A video posted online by the Coast Guard showed responders clapping and cheering as the final man, wearing only shorts, climbed out of a hole in the hull and stood up.

Three of the South Korean crew members came out in the midafternoon. The fourth man, who was trapped in a separate compartment, emerged three hours later.

The rescues followed nearly 36 hours of work after the Golden Ray, a giant ship that carries automobiles, rolled onto its side early Sunday as it was leaving Brunswick, bound for Baltimore.

“All crew members are accounted for,” Coast Guard Southeast wrote on Twitter. “Operations will now shift fully to environmental protection, removing the vessel and resuming commerce.”

South Korean President Moon Jae-in sent a letter to President Donald Trump to express gratitude over the successful rescue of the men, saying that the news brought “huge relief and joy” to South Koreans.

The presidential Blue House said Moon also sent a letter to U.S. Coast Guard Commandant Karl Schultz and praised the “courage and dedication” of Coast Guard members involved in the rescue.

In the hours immediately after the accident, the Coast Guard lifted 20 crew members into helicopters before determining that smoke and flames and unstable cargo made it too risky to venture further inside the vessel. Officials were concerned that some of the 4,000 vehicles aboard may have broken loose.

That left responders looking for the remaining four crew members. At first, rescuers thought the noises they were hearing inside could be some of the vehicles crashing around. But by dawn Monday, they were confident that the taps were responses to their own taps, indicating someone was alive inside.

“It was outstanding when I heard the news this morning that we had taps back throughout the night,” Capt. John Reed said. Those sounds helped lead rescuers to the right place on the 656-foot (200 meter) vessel and provided motivation.

“They were charged up knowing the people were alive,” Reed said.

On Monday morning, rescuers landed on the side of the Golden Ray and rappelled down the hull. Heflin, who was coordinating the search, said they found three men in a room close to the propeller shaft, near the bottom of the stern. Responders began drilling, starting with a 3-inch (7.5-centimeter) hole. Coast Guard officials brought the ship’s chief engineer, who was rescued Sunday, out to the ship to translate, and found the three men were “on board and OK,” as Heflin put it.

Reed said rescuers passed food and water through the hole to the men. They also provided fresh air to the propeller room, which Reed said was even hotter than outside, where the high was 93 degrees (34 Celsius).

Responders set up a tent on the hull and began drilling additional holes, eventually making an opening large enough to insert a ladder and help the men climb out.

“It was like connect the dots,” Reed said of the hole, which grew to 2 feet by 3 feet (0.6 meters by 1 meter).

The fourth rescue was a greater challenge. That crewman was behind glass in a separate engineering compartment on another deck, Reed said.