It seems there is no need to add to_file into cmd.