Added XML statistics output