Implemented branching and it appears to be matching the trace logs