 
         # Sometimes we may have spurious entries in the waiting
         # list because someone invoked try/rescue UndefinedFunctionError
-        new_files   = List.delete(files, down_pid)
+        new_entries = List.delete(entries, down_pid)
         new_queued  = List.keydelete(queued, down_pid, 0)
         new_waiting = List.keydelete(waiting, down_pid, 1)
-        spawn_compilers(new_files, original, output, callbacks, new_waiting, new_queued, schedulers, result)
+        spawn_compilers(new_entries, original, output, callbacks, new_waiting, new_queued, schedulers, result)
 
       { :DOWN, down_ref, :process, _down_pid, { :failure, kind, reason, stacktrace } } ->
-        handle_failure(down_ref, kind, reason, stacktrace, files, waiting, queued)
-        wait_for_messages(files, original, output, callbacks, waiting, queued, schedulers, result)
+        handle_failure(down_ref, kind, reason, stacktrace, entries, waiting, queued)
+        wait_for_messages(entries, original, output, callbacks, waiting, queued, schedulers, result)
 
       { :DOWN, down_ref, :process, _down_pid, other } ->
-        handle_failure(down_ref, :exit, other, [], files, waiting, queued)
-        wait_for_messages(files, original, output, callbacks, waiting, queued, schedulers, result)
-    end
-  end
-
-  defp handle_failure(ref, kind, reason, stacktrace, files, waiting, queued) do
+        handle_failure(down_ref, :exit, other, [], entries, waiting, queued)
+        wait_for_messages(entries, original, output, callbacks, waiting, queued, schedulers, result)
+    end
+  end
+
+  defp handle_failure(ref, kind, reason, stacktrace, entries, waiting, queued) do
     case List.keyfind(queued, ref, 1) do
       { child, ^ref, file } ->
-        if many_missing?(child, files, waiting, queued) do
+        if many_missing?(child, entries, waiting, queued) do
           IO.puts "== Compilation failed =="
           IO.puts "Compilation failed on the following files:\n"
 

            end
          end

          IO.puts "\nThe first failure is shown below..."
        end

        IO.puts "== Compilation error on file #{file} =="

  end

  # We already have 4 currently running, don't spawn new ones
  defp spawn_compilers(entries, original, output, callbacks, waiting, queued, schedulers, result) when
      length(queued) - length(waiting) >= schedulers do
    wait_for_messages(entries, original, output, callbacks, waiting, queued, schedulers, result)
  end

  # Release waiting processes
