RMS functionality implemented

RMS functionality implemented