Changed heuristic3