Initial support for flush()