Added utility code to generate flow mods.