Add global text scan functionality