Enable flush function

Not sure about this "No newline at end of file" message from Github as I don't do anything there, I think it's only because of the difference in IDE.

Anyway, the pull request is pretty straight forward, which is to enable flush function.

Hope you see it well. Thanks.