Stream with flush option