Moving the encoding mechanism to not output a string. Instead of that an enum (class type) and and order.