       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)


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

  @doc false

  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)
