Changed _getItems() to work with from/to params instead of a fixed idx.