Adding a SCAN statement