Use the rval in mpdm_ival() and vice-versa.