Improved GM Spectrum comparison code.