Add publish and subscribes