add stats
Add stats support.