Added discrete/volume/resource item and preparations for more items. (#31, #39)