Switched from raw allocation to shm