The current code seems to simply contatenate all branches.
The current code seems to simply contatenate all branches.