Added state machine behavior
Added state machine behavior