MODIFIED: new APIs for channel factories.