Change IQ.Type to enum