 
     defp requests(path) do
         case get(path) do
+            ## TODO: add more cases.
             %Tesla.Env{status: 200, headers: headers, body: body} -> %{:headers => headers, :body => body}
             %Tesla.Env{status: 500, headers: headers, body: body} -> %{:headers => headers, :body => body}
             %Tesla.Env{status: 404, headers: headers} -> %{:headers=> headers, :error => "Error: 404 page not found."}

    end

    def tour_list do
        requests("/tour/list", "")
    end

    def tour_next do
        requests("/tour/next", "")
    end

    def tour_restart do
        requests("/tour/restart", "")
    end
    
    defp shutdown(pid, term \\ []) do

        end
    end

    def dns(arg) when is_bitstring(arg) do
        res = requests("/dns?arg=", arg)
        res.body
    end
 
    ## TODO: add get_cmd for output, archive, compress and compression level
    def get_cmd(multihash) when is_bitstring(multihash) do
        requests("/get?arg=", multihash)
