Update inventory on changes.