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

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

  @checkup_time 5_000
  # @checkup_time 30_000

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

      Logger.info 3, "Time for events: #{inspect late_events} to run at: #{now.hour}:#{now.minute}"
      start_events(late_events, now)
    end
    exit({:success, new})
  end

  defp do_checkup(list, time, late_events \\ [], state)
