Modifiying topn to provide URLs instead of names, makes getting query data nicer