Distances and thresholds