Implement intelligent pagination