Rewrite Router class