Most MySpectrum functions added.