Changed the router update algorithm.