Initial sockets and distanceCalculator