Store the state_only value and the state value correctly.