Make sure you allocate enough shared memory!