Adding pagination to requests