Add publish and subscribe manually