Added spectral entropy calculations.