Removed the flush line at each call to RecordValues.
Writing to the output file is 'much' faster now.