Adding internal state turning x into temp state.