Changed 'init_file' to first remove the file if it already exists.