Add functions, Router::register() function refactored