Add alternative distance calculation