Working rankall.R