Added ability to save spectrum data.