Cleanup script now checks if there are duplicate tags