Added the ability to use qr as attribute