Adding pagination to config