SaveToConfig needs its second param set to false so it doesn't write to the actual config file every time (here and below).