Adds support for page and pageSize use

Fixes #3