Added pagination.

Unused block argument - `config`. You can omit the argument if you don't care about it.