Implement heuristic