Actually register the listener.