Added saving the user_id and set_id for the state.