Update QR depending on state.