Update state diagram.