Implemented publish/unpublish