Implemented pagination (including a nice auto-paging capability).