Needs to be made consistent with the new inventory code. Easy fix.