Refactoring copy and paste.
Refactoring csv.