Improved log, statistics output