Refactored to inventory for sold out feature.