Updated examples to use the new Scan method.