Added code to account for previously-unknown ratings.