Tweaks to get geolocation working