Improve API consistency by replacing the NextForAll function with NextUpTo.