Added helper functions to node for ratings.