New state machine initialization