Added a few more lines of code. Need to find better way to test. Will likely need to set up jailbreak testing system since I have no access for provisioning a profile for my iPhone.