Edit to csvwriter method.