Updated publication script (WIP)