Added geolocation code