Adding support for root event listener.