Improved greedy search.