Scanning rewritten