Added routeMatches method