Updated rating functionality