Changed Route algorithm location to class Router.