Add loadSharedMemory function but not tested yet