Fixed publish, subscribe, unsubscribe functionalities.