Added inventory checking