Updating location to server.