Now writing out trees and blob data.