Add SetAllowNil method