Added support for setting ratings