Adding onPersist / onUpdate events