Added second heuristic