Pagination support

Fixes #92