Updated CommentTree and Ranking logic.