       end
     end
 
-    fn ->
-      IEx.start(opts, {__MODULE__, :remote_start, [parent, ref]})
-    end
+    {IEx, :start, [opts, {__MODULE__, :remote_start, [parent, ref]}]}
   end
 
   defp options do

    &local_start/0
  end

  defp remote_start_function do
    ref    = make_ref
    opts = options()


          {:badrpc, reason} ->
            abort "Could not contact remote node #{remote}, reason: #{inspect reason}. Aborting..."
          {:module, IEx} ->
            {mod, fun, args} = remote_start_mfa()
            {remote, mod, fun, args}
          _ ->
            abort "Could not find IEx on remote node #{remote}. Aborting..."
        end
