Add pagination and response envelope.