Changed dynamically computing the rating score logic