When an order times out and is cancelled, the algorithm checks to see whether or not it has been routed through all available venues. If it has, then all venues are included for consideration. If it hasn't, the current venue is removed from consideration until all venues have been exhausted.