Add publish hoook