No need to load these settings (MaxRate + Expo) outside of the "else" clause below.  Also move related local variables into the scope of the "else".