Modify the function to get hopcount and backlogs.