Create update code