Change dry-run algorithm