Added gps and gcm functionality