Implemented basic pubsub