look up what to do . It warned him not to sleep . So he set his phone alarm to go off every 20 minutes . Once the battery got down to less than 20 percent of its power , Woolley turned it off . By then , he says , he had trained his body not to sleep for long periods , drifting off only to wake up within minutes . Woolley 's job keeps him tech savvy . He oversees interactive projects for the Christian child advocacy organization Compassion International in Colorado Springs , Colorado . CNN iReport : Looking for loved ones in Haiti With his injuries tended to , he wrote a note to his family in his journal : `` I was in a big accident , an earthquake . Do n't be upset at God . He always provides for his children even in hard times . I 'm still praying that God will get me out , but he may not . But even so he will always take care of you . '' The journal is stained with his blood . After more than 60 hours , Woolley was pulled from the
-LRB- CNN -RRB- -- Alone in the darkness beneath layers of rubble , Dan Woolley felt blood streaming from his head and leg . Then he remembered -- he had an app for that . Woolley , an aid worker , husband , and father of two boys , followed instructions on his cell phone to survive the January 12 earthquake in Haiti . `` I had an app that had pre-downloaded all this information about treating wounds . So I looked up excessive bleeding and I looked up compound fracture , '' Woolley told CNN . The application on his iPhone is filled with information about first aid and CPR from the American Heart Association . `` So I knew I was n't making mistakes , '' Woolley said . `` That gave me confidence to treat my wounds properly . '' Trapped in the ruins of the Hotel Montana in Port-au-Prince , he used his shirt to bandage his leg , and tied his belt around the wound . To stop the bleeding on his head , he firmly pressed a sock to it . Concerned he might have been experiencing shock , Woolley used the app to