Added a bit more logging, and fixed single-stat processing feature.