Updated comment and rating functions