This block has to be added between preSave() and postSave()