Updated all the commands to support shared memory.