Added heuristic definition