Added rmid2rho function.