Add flag string settings, flat map option
Added debug log level setting