     {:ok, %{}}
   end
 
-  def handle_cast({name, probe}, probes) do
+  def handle_cast({:register, {name, probe}}, probes) do
     if Map.has_key?(probes, name) do
       Logger.debug(fn -> "A probe with name '#{name}' already exists. Overriding that one." end)
     end

    {:noreply, Map.put(probes, name, probe)}
  end

  def handle_cast(name, probes) do
    {:noreply, Map.delete(probes, name)}
  end


  def register(name, probe) do
    if genserver_running?() do
      if is_function(probe) do
        GenServer.cast(__MODULE__, {:register, {name, probe}})
        :ok
      else
        Logger.debug(fn ->
