[PATCH 0/9] Adding support for mks-stats and some cleanups/fixes