Adding lil_loc and shared memory.