Adds ranking functionality.