Starting work: CSV's and write files function.