Debugging with Iowa test case data. There is still a bug in here, writing the results csv is not working