Extended state transition diagram