Record message stats.
Remove dead code.
Don't automatically log assets, adds an option to do this.