Merged flow into global
Rename groups to heads