Hi, I have a code that reads PI Tags, prints data to console, but can only save the last iteration to csv file.