Working on rank endpoint