Added significant distance change logic.