Write yearly data to CSV if that option is selected