Adding copy_ref feature.