autoRegister flag has been added.