And now to properly register the listener.