Added some small functions to the ListenerHelper to make it more useful for other cases.