Firefighters in China lowered an iPhone into a 40-foot deep dry well to aid them in rescuing a 2-year-old boy who fell in, according to a report from the ITN.

The phone was used to spy the position that the toddler was in and then to guide rescuers as they pulled the boy up the well via rope in the Yunnan Province near Mengzi City, China.

Attempts to rescue the boy using a harness had failed, because he kept slipping out, according to ITN, and oxygen was piped into the hole to help the boy breathe as rescuers ran through various lifesaving options.

This isn't the first report in recent years of a smartphone being used to help save a life. Reports from disaster sites, such as the 2010 Haiti earthquake, included one man's story of how he used an iPhone app to help treat his own head and foot injuries, and avoid going into shock.