Added localized version of publishing logic