Changed type of rating to double.