Cleanup for publication