Modify publish process