Re-organised so Shared Memory is created in PWM server