       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."

  alias Farmbot.FarmEvent.Execution
  alias Farmbot.Repo.FarmEvent

  # @checkup_time 100
  @checkup_time 30_000

  def register_events(event_list) do
    GenServer.call(__MODULE__, {:register_events, event_list}, 10_000)
