Added Phonegap Functionality.