Actually it's GeneratorType, not Generator_Type.
Convert generator_type to a Symbol.
Downcase type and convert to Symbol.
Added specs for KeyExchange.