Added some statistics to output.