Update to working version with double transitions.