Added withIORefCount.