Changed methods to get inventory to suit new changes related to #11