       Logger.info 3, "Time for events: #{inspect late_events} to run at: #{now.hour}:#{now.minute}"
       start_events(late_events, now)
     end
-
-    # Start a new timer.
-    timer = Process.send_after self(), :checkup, @checkup_time
-    {:noreply, %{new | timer: timer}}
+    exit({:success, new})
   end
 
   defp do_checkup(list, time, late_events \\ [], state)


  def handle_call({:register_events, events}, _, state) do
    Logger.info 3, "Reindexed FarmEvents"
    {:reply, :ok, %{state | events: events}}
  end

  def handle_info(:checkup, state) do
    now = get_now()
    alias Farmbot.Repo.FarmEvent
    maybe_farm_event_log "Rebuilding calendar."


  defmodule State do
    @moduledoc false
    defstruct [timer: nil, last_time_index: %{}, events: [], checkup: nil]
  end

  @doc false
