Changed distance threshold