JIRA 400: WIP. Added pagination.