New heuristic function has been added