Added GetN method for paged queries.