Preliminary Scanning code added