Changed the router update method.