Added XML output and changed rating condition from '>' to '>+='