Changes required for cordova-lib