Implemented Router Middleware.