Made inheritance type-setting nice.