Code cleanup: properly indent the scanner function.