Added ability to generate common base classes.