Completing tree initialization with a hash