Converted the mainmemory to hold pointers to the backing store.