Added Publish() method