Extracting pButtons data to a csv file for easy charting