Module factory and manager.