getCoords() function now continue working when connection lost