Updated flush runscript