Adding support for response and pagination.