Added support for results pagination.