Implement pagination feature