Added module base class and module manager.