Moved before save to allow updating isProcessed Co-authored-by: Silvano Trinchero <strinchero@freepath.it>