Added a state structure.