changed exit loop code in FrequencyConfig to set max frequency instead of disable, otherwise if preceding loop has low frequency it will continue with low frequency instead of resetting it high