Added first pass of update code.