Added final heuristic