Add basic onInput callback