These prev/succ functions should be const functions.