Added route generation to the router.