Add greedy method.