Finished csv implementation