Add support for subtypes.