Implemented factories_c, factory_c's now autoregister.