Add routePattern method