Add pagination support.