Removed auto publish and setup basic pubsub