Updated state chart diagram.