Weight field added in qrcode model
Update used state implemented.