Made publisher stateless
Fixed publishing