DistanceHandler working