Changed spec_type to spec_variant