Refactored ranking and added rank to bot page