Added pagination

Added pagination with a default value of 20.
Tested in a demo project.