Change scan text to a directive