Better code for transitions.