Added branching stuff.