Four New York Police Department transit officers helped deliver the child of a homeless woman in a Brooklyn subway station, the New York Daily News reported.

Officers Ana Martinez, 29, and Stephen Geniale, 26, were standing outside the transit bureau headquarters when they noticed a homeless woman doubled over in pain about 10:30 p.m. Wednesday, the Daily News reported.

The woman was in labor and was trying to get to a hospital, the officers said.

“I knew she was in trouble,” Geniale said.

Then the woman began yelling, “Baby's coming,” the officers said. The woman was already crowning

Three minutes from the time she was brought into the transit bureau headquarters, the pregnant woman gave birth to a healthy baby girl named Alson, the Daily News reported.

“It was amazing. I'm glad I could help,” Martinez said. “Looking at those little fingers and little toes ... I was tearing up.”

The mother, who lives in a homeless shelter, and her daughter were taken to Brooklyn Hospital in good condition.

“It could have happened anywhere else and thankfully it happened in front of us,” Martinez told the Daily News.