Added base classes for contexts.