Added global variables, Included check for Google Play Services