Add stats tracking and summarizing