Added variable arguments to the 3D error stats function.