Updates to PubSub examples