Allow setting timeout on scan.