Random cleanup
Implemented stat updates on interval for performance