Wrote a tiny function that finally binds to the add_listener functions.

Took  me long enough. Also, it's dirty in every sense. And untested. But
I needed to move this code around.