Removed obsolete call to rank