Implement switching branch method