Modified alloc_mem_rp_MR for new allocation procedures