Add pagination (fixes #101)