Merging
Hand merged
Added children to flow instances, and added foreach methods