Adding the concept of state.