Optimization in the way the transition button state is handled.