Removed flush statement as it is unneccessary.