Registering an unregistering listeners.