Made Z use integer vectors instead of strings.