Added publishing code back