Switch heuristic to length