Implemented shared memory handling to be able to transfer arbitrary
objects between processes.