RMS current calculations added