Changed ranking to int for CC