Add support for publisher

Adds support for publisher.