Add some explicit flushing