Capture result from each (major) phase as trees in API