Figure 4:
Scanning program diagram.