Adds the state (bodystate) to CSV output line-by-line.