Added PhoneGap Functionality