Added getSubTree method.