Added DistCalculator.