Initialize Acitivy with Rank