Change of residual function is now saved to summary file