Reading lines from stateMachine continuosly