How the inventory control system works?