Added new middlewares