Moved publisherClient to its own declaration.