Added pagination support.
Merge pull request #147 from adubovik/master

Pagination support