Changes to add get top docs functionality