Added summarizing function.