Sort out inheritance