Make the rank function work more than once. :-)