Move more code out of customcsv.init()