Adds a getter for the listeners.