Implement searching and pagination