Implement the route filter