Added branching support.