Edited scripts to add flows