Added the auto regenerate flag.