Added inventory check