Added DistanceLib