Added system stats plugin, compact() util function