Now prints a summary in the end.