Training with branches