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 the order has not been routed through all available venues, the current venue is removed from the list of eligible destinations until all venues have been exhausted.