Reset repository.
Add refcount_ptr.