Added the rms threshold, determined emperically, for easing the job of the RMS filter.