Added appstats to app.