Add 'scan' directive