FIX: Use shared memory functions.