Removed extra qr states and regs.