Changing branching calculation.