Initial pagination implementation