Change ctor for lifecycle.