Added capability for adding in ranks