Added automatic memid generation to memory_unpack command