Scan for tokens.