Added missing middlewares