Added Shared Memory Handling