Added pagination

Resolve #12