Updated ratings functionality