Make sure we register listeners only once.