ClosureMiddleware added