Added a flush data script.