Revert "Remove what appears to be mistake code"

This reverts commit 7ea9ba0b76bb0e96caafd0e16f801d96ad5b6244.

Sadly this seems necessary.  It is badly named though since it has
nothing to do with update.