Tweaks to publish script