Distance. Proximity logic to change bus directions