Added base class loading mechanism.