Simplify heuristics and just use a score function.