Power spectra-creating code.