Added the listeners.