Rough work migrating to native viewfinder for scanning.