Adding missing flush function
Merge pull request #1475 from nlake44/flush_missing

Adding missing flush function