Less greedy
Add a step
Some pseudo