Modify rm to macro RM