Inverted the polarity of the spectrum
Optimized the includes a bit