Corrected branch2 implementation.
Merge pull request #1 from jdmorlan/fix-branch2-implementation

Corrected branch2 implementation.