Adding custom licensing; updating startScanner function