Beginnings of state machine and pausing support