Added simple pagination.