First cut of an "update" function.