Added the publisher functionality