Add onBeforeSave() and onAfterLoad()