add suport of a power spectrum. havn't tested but should be
fine.