Added pagination (finally!)

Some ugly copy-pasta. I really need to go through and rewrite parts of
my pipeline to streamline it.