Fixing preUpdate lifecycle callback to actually work.