Minor pagination function change.