Updated output .csv so results are correctly written to their cells