Change rateById to be valueById and just make it a dictionary