Added copy tree support