Worker for the s3 scanner.