Introduced interactive wavelength fitting algorithm