RMS: function implementation replacement.