Stripped out flags, moved csv require to where it is being used