3 different heuristics, debug added