Added UML sequence diagram.