Would it be possible to rig the xlocal obtained from self.da.getLocalVec() to automatically trigger the da.restoreLocalVec() when the xlocal goes out of scope so that the user does not need to explicitly make the call. If so, how should I go about implementing it? Barry