Added RMS power calculation.