Add state variable.