Added support for packages to Router class.