Add summary output summary and fix parsing bug.