Put geolocation stuff in separate file