Scirpt to compile results into a csv