Adding an autoloader and some additional functions to the router.