Update the Router class