Added inventory logic