Added ksmstats to XML + small fix.