Adding stateful pagination.