Modified the top-rated functionality