Changed code as per the new way using IInventoryListener
rather than using IController