   """
   @spec enable(atom) :: {:ok, true}
   def enable(flag_name) when is_atom(flag_name) do
-    @store.put(flag_name, true)
+    {:ok, flag} = @store.put(flag_name, Gate.new(:boolean, true))
+    verify(flag)
   end
 
 

  @moduledoc """
  FunWithFlags, the Elixir feature flag library.
  """

  @store FunWithFlags.Config.store_module


  """
  @spec disable(atom) :: {:ok, false}
  def disable(flag_name) when is_atom(flag_name) do
    {:ok, flag} = @store.put(flag_name, Gate.new(:boolean, false))
    verify(flag)
  end


  defp verify(flag) do
    {:ok, Flag.enabled?(flag)}
  end
end
