Add support for publish/subscribe.