Added middlewares