Use factory function.