Difference RMS calculation reworked