Fixed output and added summary field