Added attach action to state.