Adjusted distance threshold