Implemented private factories.