Updates to how shared memory is working