Add states and stuff.
Update state.