Added preUpdate event