First running version of finite state machine framework