Adding functionality to rankall.R