       # handles communications between bot and arduino.
       supervisor(Farmbot.Serial.Supervisor, [], restart: :permanent),
       # Watches the images directory and uploads them.
-      worker(Farmbot.ImageWatcher, [], restart: :permanent)]
-    ] |> List.flatten
+      worker(Farmbot.ImageWatcher, [], restart: :permanent)
+    ]
     opts = [strategy: :one_for_one]
     supervise(children, opts)
   end

  # This has to be at runtime because you cant access your own apps
  # priv dir during Mix.Config.
  if Mix.env == :prod do
    defp maybe_debug_logger do
      []
    end

    defp setup_nerves_fw do
      Logger.info ">> Setting up firmware signing!"


  def init(_args) do
    children = [
      worker(Farmbot.DebugLog, [], restart: :permanent),
      supervisor(Registry, [:duplicate,  Farmbot.Registry]),
      # System specifics.
      supervisor(FBSYS, [], restart: :permanent),
