Working on shared memory. Intermediate commit