Removed dead code from print_diag