Added setting deferredFactory