path = getDirectory("home") + "values.txt"; values = split(File.openAsString(path), "\n"); n = values.length; if (n!=nSlices) exit("Number of values != stack size"); for (i=0; i