Add flushing on write.