Added shitty indexing for auto-pagination

Seriously, it’s not good. It’s messy. I should really revisit this…