Modified tar.d to take advantage of array-wise operations.