DistanceException added