Added code for connection with IME scanning and word prediction scanning