open (OUTPUT_FILE, ">$outputfile") or die "Could not open $outputfile: $!";