Added getDistance() prototype