Handle result paging (only unit-tested, not real-world-tested)