- Adapt the algorithm for begin at the end