Several changes to spectra scripts.