Fixed looping problem with summary. Reduced output