Refactored some of the inventoryMonitor class