Added registration protocol, pubsub now works! :)