Cleaning up and printing summary