Added paging check.