Reworking distance heuristic.