Added support of stack of FSM. Clean code, refactoring