Inverse heuristic implemented