Added Geolocation function and local host function