Simplifying get_next