Made geolocation synchronous