Add Opt.scan.
Add errors for missing patterns.