Updated and simplified code for paired classification summary.