Use generic version of ranking function.