Moved geolocation functions over