Added helper functions Rank and File