Added Paginator function