change: Add stats report and fix some concurrent bugs