Perfected geolocation code!