The main template for branching.