Change distance threshold