--Clean matrix for x = 1,options.x do --For each X matrix[x] = {} --Initialize the Y table for y = 1,options.y do --For each Y matrix[x][y] = {} --Initialize the Z table for z = 1,options.z do --For each Z matrix[x][y][z] = 0 --Fill in 0 end end end