Updated docs for flush method