Scanning code written