Update docs for middleware option