Allow for null values for distance calculation.