Added support for multiple items per page.