Traverse the dictionary and get ID recursively (No test code versino)