Inventory variables streamlined to remove globals.