Stats, cleanups, flag stuff, settings