Command-line argument for rank.
add a bunch of stuff