Adding code for enabling mutliple trees in hashtree