The FitSpec function uses iterative fitting both when using a fixed peak list, and when adding peaks. When using a fixed peak list, ‘par.IterFact’ and ‘par.n_iter’ control the number of iterations within a sub-spectrum fit and number of fit iterations over the whole spectrum. When using a dynamic peak list, an additional parameter, ‘par.add_peaks’, controls the number of times that peaks will be added and removed. Setting this equal to zero will fix the peak list, which is the default if ‘fit0’ is provided.