Use inherits instead of the old hack