Make queryPagination() public