Add branchLog function.