Added state diagrams.