Revert "Use appstats"

This reverts commit 19187ab80cb348f31e1437a54fef2e3d0fddded6.