Add ranking validation code.