Generalized the special import mechanism.