Added hquad heuristic.