Very initial implementation of branching.