Middleware add