Adding basic geolocation functionality