Fixes #4. Pagination support