Initial work on the port over. Starting with Rank.