Fixed barcode scanning autofocus problem. Various improvements.