Cleaned up QR scanning a little