Added inventory updating.