Added storing a user state.