Added new line for time, x, y, and z for outputting the coordinates.