Add the missing code to treat data coming from the input method as