open(OUT, ">>$debug_output") || warn "Could not append to $debug_output - $!\n";