Used more simple approach for heuristics.