Ranking Module modified by TimmyXu