Fixed bug in publisher implementation
Added scratchpad