Refactor agents stats (sync and auto rotate).