Added Google play services detection code.