Rewrite function report_diff()