Another logic refinement in summarizeSGP