Implemented missing inventory functionality.