Pagination

I added pagination. I'm not sure if it's entirely bug-free, but I'll fix them if you find any.

-dense