Added the ability to unsubscribe listeners.