Refactor ScanFile method signature.
Update GUI sample to use new ScanFile signature.