It helps to register listeners.