Complete and working initial rank

Rank on initial render now works as intended.