Added code to download the subtree