       {:ok, algo_sup} ->
         Process.exit pid, :kill
         log_command_executed(node_id, :force_reset, status)
+        # Should we check if processes are restarted here? 
         next_status = :just_started
         set_status(node_id, state_agent, status, next_status)
         {:reply, :ok, {next_status, state_agent, config}}
     end
   end
+
+  # TODO: Handle invalid commands
 
   def log_command_and_get_process(node_id, command, name, {status, state_agent, config}) do
     log_command_received(node_id, command, status)

      nil ->
        message = "#{node_id}: cannot execute command :begin_pings. PingClient isn't running"
        Logger.error message
        {:reply, {:error, message}, {:pinging, state_agent, config}}
      pid ->
        {:reply, :ok, {:pinging, state_agent, config}}
    end

    |> Enum.filter(fn pid ->
      pid == nil
    end)
    |> (fn nil_statuses -> Enum.count(nil_statuses) == 0).()

    if ready? do
      {:reply, :ok, {:ready, state_agent, config}}
