Updated to allow RouteBase derived types