Modified inventory code