Modified RMS_avg