Modify flow function.