Changing Flags to Globals, and flavor to "lf"