Adding support for input listeners