Simple, and somewhat broken, pagination