Added summary output at the end.