Adding inventory remaining logic