   # Message comes over AMQP.
   def configure_certs("-----BEGIN CERTIFICATE-----" <> _ = cert,
                       "-----BEGIN EC PRIVATE KEY-----" <> _ = key) do
-    Logger.debug 1, "Configuring certs for NervesHub."
+    Logger.debug 1, "Configuring certs for OTA Server."
     :ok = @handler.configure_certs(cert, key)
     :ok
   end
 
   def deconfigure do
-    Logger.debug 1, "Deconfiguring NervesHub"
+    Logger.debug 1, "Deconfiguring OTA Server"
     :ok = @handler.deconfigure()
     :ok
   end
 
   def check_update do
-    Logger.debug 1, "Check update NervesHub"
+    Logger.debug 1, "Check update OTA Server"
     @handler.check_update()
   end
 end


  # Sets Serial number in environment.
  def provision do
    Logger.debug 1, "Provisioning NervesHub"
    :ok = @handler.provision(serial())
  end

  # Creates a device in NervesHub
  # or updates it if one exists.
  def configure(tags) when is_list(tags) do
    Logger.debug 1, "Configuring NervesHub: #{inspect tags}"
    payload = %{
      serial_number: serial(),
      tags: tags

  end

  def terminate(reason, state) do
    Logger.warn 1, "OTA Server crash: #{inspect reason} when in state: #{inspect state}"
  end

  def handle_info(:configure, :not_configured) do
