Revert "Minor pagination function change."

This reverts commit 416e69b22cfc775c7077443ef284c6bbf6366701.