Implemented ability to create inventories in different ways.