Added support for different classes of fetched items.