Bug fix building tensors.
Update output.