Added addTransition.