Create tree serilization