Add a bit of publishing code