1. A dynamic state machine comprising: a plurality of finite state machines including a root finite state machine and one or more child finite state machines associated with the root finite state machine, wherein the one or more child finite state machines are dynamically created by the root finite state machine wherein upon the root finite state machine receiving an enabled event, an action takes place in response to the event, the action including dynamically creating at least one child state machine; wherein the root finite state machine and the at least one child finite state machine both remain active; and wherein the root finite state machine and the dynamically created at least one child finite state machine are collectively treated as a single entity.