Refactored QR Codes file