Completed decodeQR hopefully