Added state file output for data collection