Removed RefCounter which is redundant with shared_ptr.