Added copy_ptr