Added a flush statement