In the process of debugging RUMIcurve function.