Adds support for sub-classes to use inherited class name.