AI now accounts for the direction of other trains.