Fix heuristic flaw, tweak selection
Fix heuristic bug; log mining script